mirror of
https://github.com/gogs/gogs.git
synced 2025-05-29 10:42:30 +00:00
security: fix improper PAM authorization handling (#6819)
Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
parent
242deca524
commit
940a7da9d1
@ -22,6 +22,7 @@ All notable changes to Gogs are documented in this file.
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- _Security:_ Potential SSRF in repository migration. [#6754](https://github.com/gogs/gogs/issues/6754)
|
- _Security:_ Potential SSRF in repository migration. [#6754](https://github.com/gogs/gogs/issues/6754)
|
||||||
|
- _Security:_ Improper PAM authorization handling. [#6810](https://github.com/gogs/gogs/issues/6810)
|
||||||
- Unable to use LDAP authentication on ARM machines. [#6761](https://github.com/gogs/gogs/issues/6761)
|
- Unable to use LDAP authentication on ARM machines. [#6761](https://github.com/gogs/gogs/issues/6761)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
@ -25,6 +25,10 @@ func (c *Config) doAuth(login, password string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return t.Authenticate(0)
|
err = t.Authenticate(0)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return t.AcctMgmt(0)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user