forked from mirrors/forgejo
Linux PAM reports "Authentication Failure"
OpenPAM reports "authentication error"
This resulted in forgejo reporting error 500 on FreeBSD when pam
authentication failed.
Add a sentinel error to make this portable: ErrInvalidCredentials
Signed-off-by: Baptiste Daroussin <bapt@FreeBSD.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11296
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Baptiste Daroussin <bapt@FreeBSD.org>
Co-committed-by: Baptiste Daroussin <bapt@FreeBSD.org>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| db | ||
| ldap | ||
| oauth2 | ||
| pam | ||
| remote | ||
| smtp | ||
| main_test.go | ||
| source_group_sync.go | ||
| source_quota_group_sync.go | ||
| source_quota_group_sync_test.go | ||