diff options
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: |