From ec87a75c000d52bfc2a8dcfc7097c14fe872c376 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 27 Nov 2016 14:03:59 +0800 Subject: golint fixed for modules/auth --- models/login_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/login_source.go') 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} } -- cgit v1.2.3