mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
golint fixed for modules/auth
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user