commit | 3927d84a39aa8f5bd540186bae457d1931bda736 | [log] [tgz] |
---|---|---|
author | Matt Martz <matt@sivel.net> | Wed Jun 04 10:30:35 2014 -0500 |
committer | Matt Martz <matt@sivel.net> | Wed Jun 04 10:32:43 2014 -0500 |
tree | e551254af588b8db1fa04e16da5401c3a4e52ac3 | |
parent | 2285a429874c1365ef6c6d3ceb08b1d428e26aca [diff] [blame] |
Prevent panic on incorrect auth
diff --git a/authenticate.go b/authenticate.go index 0f7c633..003fb48 100644 --- a/authenticate.go +++ b/authenticate.go
@@ -137,6 +137,7 @@ // I didn't need another one. func (c *Context) papersPlease(p Provider, options AuthOptions) (*Access, error) { var access *Access + access = new(Access) if (options.Username == "") || (options.Password == "" && options.ApiKey == "") { return nil, ErrCredentials