diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-27 14:03:59 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-27 21:39:06 +0800 |
commit | ec87a75c000d52bfc2a8dcfc7097c14fe872c376 (patch) | |
tree | d849fb1070fe15136538404127099e9a7e0dd302 /models | |
parent | e6da2cf2cbff4d550cf938548233a59ceef6528e (diff) | |
download | gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.tar.gz gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.zip |
golint fixed for modules/auth
Diffstat (limited to 'models')
-rw-r--r-- | models/login_source.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/login_source.go b/models/login_source.go index b570f415c7..7a5e6083a7 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -502,7 +502,7 @@ func LoginViaSMTP(user *User, login, password string, sourceID int64, cfg *SMTPC // LoginViaPAM queries if login/password is valid against the PAM, // and create a local user if success when enabled. func LoginViaPAM(user *User, login, password string, sourceID int64, cfg *PAMConfig, autoRegister bool) (*User, error) { - if err := pam.PAMAuth(cfg.ServiceName, login, password); err != nil { + if err := pam.Auth(cfg.ServiceName, login, password); err != nil { if strings.Contains(err.Error(), "Authentication failure") { return nil, ErrUserNotExist{0, login, 0} } |