-
- {t(I18nKey.AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY)}
-
+ {headerMessage}
diff --git a/frontend/src/hooks/use-email-verification.ts b/frontend/src/hooks/use-email-verification.ts
index ac919fc8ec..f9cf4fe29c 100644
--- a/frontend/src/hooks/use-email-verification.ts
+++ b/frontend/src/hooks/use-email-verification.ts
@@ -21,6 +21,7 @@ import { useResendEmailVerification } from "#/hooks/mutation/use-resend-email-ve
* - isCooldownActive: boolean indicating if cooldown is currently active
* - cooldownRemaining: number of milliseconds remaining in cooldown
* - formattedCooldownTime: string formatted as "M:SS" for display
+ * - wasRateLimited: boolean indicating if the user was rate limited during OAuth flow
*/
export function useEmailVerification() {
const [searchParams, setSearchParams] = useSearchParams();
@@ -29,6 +30,7 @@ export function useEmailVerification() {
const [emailVerified, setEmailVerified] = React.useState(false);
const [hasDuplicatedEmail, setHasDuplicatedEmail] = React.useState(false);
const [recaptchaBlocked, setRecaptchaBlocked] = React.useState(false);
+ const [wasRateLimited, setWasRateLimited] = React.useState(false);
const [userId, setUserId] = React.useState(null);
const [lastSentTimestamp, setLastSentTimestamp] = React.useState<
number | null
@@ -85,6 +87,13 @@ export function useEmailVerification() {
shouldUpdate = true;
}
+ const rateLimitedParam = searchParams.get("rate_limited");
+ if (rateLimitedParam === "true") {
+ setWasRateLimited(true);
+ searchParams.delete("rate_limited");
+ shouldUpdate = true;
+ }
+
if (userIdParam) {
setUserId(userIdParam);
searchParams.delete("user_id");
@@ -136,6 +145,7 @@ export function useEmailVerification() {
setEmailVerified,
hasDuplicatedEmail,
recaptchaBlocked,
+ wasRateLimited,
userId,
resendEmailVerification: resendEmailVerificationMutation.mutate,
isResendingVerification: resendEmailVerificationMutation.isPending,
diff --git a/frontend/src/i18n/declaration.ts b/frontend/src/i18n/declaration.ts
index a42047bb84..44ff4dcc38 100644
--- a/frontend/src/i18n/declaration.ts
+++ b/frontend/src/i18n/declaration.ts
@@ -767,6 +767,7 @@ export enum I18nKey {
AUTH$BY_SIGNING_UP_YOU_AGREE_TO_OUR = "AUTH$BY_SIGNING_UP_YOU_AGREE_TO_OUR",
AUTH$NO_PROVIDERS_CONFIGURED = "AUTH$NO_PROVIDERS_CONFIGURED",
AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY = "AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY",
+ AUTH$CHECK_INBOX_FOR_VERIFICATION_EMAIL = "AUTH$CHECK_INBOX_FOR_VERIFICATION_EMAIL",
AUTH$EMAIL_VERIFIED_PLEASE_LOGIN = "AUTH$EMAIL_VERIFIED_PLEASE_LOGIN",
AUTH$DUPLICATE_EMAIL_ERROR = "AUTH$DUPLICATE_EMAIL_ERROR",
AUTH$RECAPTCHA_BLOCKED = "AUTH$RECAPTCHA_BLOCKED",
diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json
index 868eee4a94..0306c04244 100644
--- a/frontend/src/i18n/translation.json
+++ b/frontend/src/i18n/translation.json
@@ -12275,6 +12275,22 @@
"de": "Bitte überprüfen Sie Ihre E-Mail, um Ihr Konto zu verifizieren.",
"uk": "Будь ласка, перевірте свою електронну пошту, щоб підтвердити свій обліковий запис."
},
+ "AUTH$CHECK_INBOX_FOR_VERIFICATION_EMAIL": {
+ "en": "Please check your inbox for the verification email we sent earlier.",
+ "ja": "先ほど送信した確認メールを受信トレイでご確認ください。",
+ "zh-CN": "请检查您的收件箱,查收我们之前发送的验证邮件。",
+ "zh-TW": "請檢查您的收件箱,查收我們之前發送的驗證郵件。",
+ "ko-KR": "이전에 보내드린 인증 이메일을 받은 편지함에서 확인해 주세요.",
+ "no": "Vennligst sjekk innboksen din for bekreftelsese-posten vi sendte tidligere.",
+ "it": "Controlla la tua casella di posta per l'email di verifica che ti abbiamo inviato in precedenza.",
+ "pt": "Por favor, verifique sua caixa de entrada para o e-mail de verificação que enviamos anteriormente.",
+ "es": "Por favor, revisa tu bandeja de entrada para el correo de verificación que te enviamos anteriormente.",
+ "ar": "يرجى التحقق من صندوق الوارد للبريد الإلكتروني الذي أرسلناه لك سابقًا.",
+ "fr": "Veuillez vérifier votre boîte de réception pour l'e-mail de vérification que nous vous avons envoyé précédemment.",
+ "tr": "Lütfen daha önce gönderdiğimiz doğrulama e-postası için gelen kutunuzu kontrol edin.",
+ "de": "Bitte überprüfen Sie Ihren Posteingang auf die Bestätigungs-E-Mail, die wir Ihnen zuvor gesendet haben.",
+ "uk": "Будь ласка, перевірте вашу поштову скриньку на наявність листа підтвердження, який ми надіслали раніше."
+ },
"AUTH$EMAIL_VERIFIED_PLEASE_LOGIN": {
"en": "Your email has been verified. Please login below.",
"ja": "メールアドレスが確認されました。下記からログインしてください。",
diff --git a/frontend/src/routes/login.tsx b/frontend/src/routes/login.tsx
index 874743aa6e..0b357909b6 100644
--- a/frontend/src/routes/login.tsx
+++ b/frontend/src/routes/login.tsx
@@ -19,6 +19,7 @@ export default function LoginPage() {
emailVerified,
hasDuplicatedEmail,
recaptchaBlocked,
+ wasRateLimited,
emailVerificationModalOpen,
setEmailVerificationModalOpen,
userId,
@@ -83,6 +84,7 @@ export default function LoginPage() {
setEmailVerificationModalOpen(false);
}}
userId={userId}
+ wasRateLimited={wasRateLimited}
/>
)}
>