1
0
Fork 0
forked from forgejo/forgejo

golint fixed for modules/auth

This commit is contained in:
Lunny Xiao 2016-11-27 14:03:59 +08:00
parent 0a76d260fa
commit 5b998a6680
16 changed files with 103 additions and 24 deletions

View file

@ -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: