forgejo/modules/auth/pam
Baptiste Daroussin 9762f9ea20 fix: portable error reporting for PAM (#11296)
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>
2026-02-16 05:57:01 +01:00
..
pam.go fix: portable error reporting for PAM (#11296) 2026-02-16 05:57:01 +01:00
pam_stub.go fix: portable error reporting for PAM (#11296) 2026-02-16 05:57:01 +01:00
pam_test.go fix: portable error reporting for PAM (#11296) 2026-02-16 05:57:01 +01:00