mirror of https://github.com/gogs/gogs.git
security: fix improper PAM authorization handling (#6819)
Co-authored-by: Joe Chen <jc@unknwon.io> # Conflicts: # CHANGELOG.md # internal/auth/pam/pam.gopull/6378/merge
parent
91f2cde5e9
commit
64102be2c9
|
@ -27,9 +27,9 @@ func PAMAuth(serviceName, userName, passwd string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err = t.Authenticate(0); err != nil {
|
||||
err = t.Authenticate(0)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return t.AcctMgmt(0)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue