forked from forgejo/forgejo
golint fixed for modules/auth
This commit is contained in:
parent
0a76d260fa
commit
5b998a6680
16 changed files with 103 additions and 24 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue