Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Remove NextAuth-era error cases from the login error banner (#3238)
Luke Vella2a90a3b6709f
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex cb577af7d..87911537d 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -79,7 +79,6 @@"authErrorsEmailNotVerified": "Your email address is not verified. Please verify your email before logging in.","authErrorsOAuthSignInFailed": "An error occurred while signing in. Please try again or contact the system administrator.","authErrorsUserBanned": "This account has been banned. Please contact support if you believe this is an error.",- "authErrorsUserNotFound": "No account found with this email address. Please check the email or register for a new account.","back": "Back","backToHome": "Back to home","banned": "Banned",diff --git a/apps/web/src/app/[locale]/(auth)/login/components/auth-errors.tsx b/apps/web/src/app/[locale]/(auth)/login/components/auth-errors.tsxindex f971194d9..108cbcec0 100644--- a/apps/web/src/app/[locale]/(auth)/login/components/auth-errors.tsx+++ b/apps/web/src/app/[locale]/(auth)/login/components/auth-errors.tsx@@ -10,7 +10,6 @@ export function AuthErrors() {return null;}switch (error) {- case "OAuthAccountNotLinked":case "account_not_linked":return (<p className="text-destructive text-sm">@@ -20,7 +19,6 @@ export function AuthErrors() {})}</p>);- case "EmailNotVerified":case "email_not_verified":return (<p className="text-destructive text-sm">@@ -30,33 +28,6 @@ export function AuthErrors() {})}</p>);- case "Banned":- return (- <p className="text-destructive text-sm">- {t("authErrorsUserBanned", {- defaultValue:- "This account has been banned. Please contact support if you believe this is an error.",- })}- </p>- );- case "EmailBlocked":- return (- <p className="text-destructive text-sm">- {t("authErrorsEmailBlocked", {- defaultValue:- "This email address is not allowed. Please use a different email or contact support.",- })}- </p>- );- case "UserNotFound":- return (- <p className="text-destructive text-sm">- {t("authErrorsUserNotFound", {- defaultValue:- "No account found with this email address. Please check the email or register for a new account.",- })}- </p>- );// Better-Auth appends its own code to errorCallbackURL; anything not// mapped above still deserves a message rather than a silent login page.default: