forgejo/modules/auth
forgejo-backport-action 8634b38383 [v14.0/forgejo] fix: portable error reporting (#11317)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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>
Co-authored-by: Baptiste Daroussin <bapt@FreeBSD.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11317
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2026-04-02 03:45:55 +02:00
..
openid chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
pam [v14.0/forgejo] fix: portable error reporting (#11317) 2026-04-02 03:45:55 +02:00
password chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webauthn chore: QoL improvements to tests (#7917) 2025-05-21 15:45:56 +02:00
common.go feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00