commit | 90cf7c283ec3b9464eeada7cca44b7ce89eb406e | [log] [tgz] |
---|---|---|
author | Samuel A. Falvo II <kc5tja@arrl.net> | Wed Jun 04 11:31:58 2014 -0700 |
committer | Samuel A. Falvo II <kc5tja@arrl.net> | Wed Jun 04 11:31:58 2014 -0700 |
tree | e551254af588b8db1fa04e16da5401c3a4e52ac3 | |
parent | 2285a429874c1365ef6c6d3ceb08b1d428e26aca [diff] | |
parent | 3927d84a39aa8f5bd540186bae457d1931bda736 [diff] |
Merge pull request #163 from sivel/access-nil-pointer 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