Commit Graph
6 Commits
Author SHA1 Message Date
Andras Bacsai 5b1fcd6e13 feat(auth): show OAuth-only registration notice on login page
Move the user creation check from OauthLoginService into
OauthSetting::allowsUserCreation(), so the login view can use it.
The login view now gets a can_register_with_oauth flag. The flag is
true when an enabled OAuth provider allows creating new users. The
view uses it to show the new auth.register_with_oauth message.
Add translations for the message in all locales, plus test coverage.
2026-10-02 16:45:33 +02:00
Andras Bacsai 8521f973dd fix(auth): show specific error messages for denied OAuth logins
Add OauthLoginException, which carries a translation key for the message
shown on the login page. The exception message only goes to the log.
OauthLoginService now throws it for an unverified email, an account that
is already linked to another identity, and disabled registration.
OauthController shows the matching message for each case. Other
HttpExceptions fall back to a generic OAuth failure message.

The email verification check now runs before the linked-identity check,
so an unverified email cannot reveal that an account is already linked.

Add translations for the new auth.failed.oauth* keys in all locales and
cover the new error messages with feature tests.
2026-10-02 16:07:48 +02:00
Sandro Sobczyński d15cb2386b feat(lang): add Polish language & improve forgot_password translation (#6306) 2025-08-04 14:13:33 +02:00
Yassir Elmarissi a77bd88258 feat(auth): Add Clerk OAuth Provider (#5553) 2025-06-18 14:29:46 +02:00
Yassir Elmarissi 4375f52c5d feat(auth): Add Discord OAuth Provider (#5552) 2025-06-18 14:19:01 +02:00
Chingiz Mammadov c6b7779c82 feat(lang): Added Azerbaijani language updated turkish language. (#5497) 2025-04-01 14:45:44 +02:00