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 /modules/auth/pam/pam.go | |
parent | e6da2cf2cbff4d550cf938548233a59ceef6528e (diff) | |
download | gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.tar.gz gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.zip |
golint fixed for modules/auth
Diffstat (limited to 'modules/auth/pam/pam.go')
-rw-r--r-- | modules/auth/pam/pam.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go index 7f326d42f5..6f0f7240ae 100644 --- a/modules/auth/pam/pam.go +++ b/modules/auth/pam/pam.go @@ -12,7 +12,8 @@ import ( "github.com/msteinert/pam" ) -func PAMAuth(serviceName, userName, passwd string) error { +// Auth pam auth service +func Auth(serviceName, userName, passwd string) error { t, err := pam.StartFunc(serviceName, userName, func(s pam.Style, msg string) (string, error) { switch s { case pam.PromptEchoOff: |