diff --git a/.changeset/password-reset-required-recovery.md b/.changeset/password-reset-required-recovery.md new file mode 100644 index 00000000000..d58ee3f9c67 --- /dev/null +++ b/.changeset/password-reset-required-recovery.md @@ -0,0 +1,9 @@ +--- +'@clerk/shared': minor +'@clerk/localizations': minor +'@clerk/ui': minor +--- + +`` and the reverification modal now guide users to reset their password when a password attempt returns `password_reset_required`. Until now, these users saw the API's English error message on the password step. They now see a "Password reset required" screen that offers "Reset your password" first, followed by their other sign-in methods. When the browser autofills the password on the first sign-in step, the user goes straight to the same screen without entering the password again. + +Adds the localization keys `signIn.passwordResetRequired.title`, `reverification.passwordResetRequired.title`, `reverification.passwordResetRequired.subtitle__saveNewPassword` and `unstable__errors.password_reset_required`, with translations for every locale. diff --git a/integration/tests/password-reset-required.test.ts b/integration/tests/password-reset-required.test.ts new file mode 100644 index 00000000000..28abeacc16c --- /dev/null +++ b/integration/tests/password-reset-required.test.ts @@ -0,0 +1,149 @@ +import { createClerkClient } from '@clerk/backend'; +import type { Page } from '@playwright/test'; +import { expect, test } from '@playwright/test'; + +import { appConfigs } from '../presets'; +import { resolveInstanceKeys } from '../presets/envs'; +import type { FakeUser } from '../testUtils'; +import { createTestUtils, testAgainstRunningApps } from '../testUtils'; +import { withRetry } from '../testUtils/retryableClerkClient'; +import { createUserService } from '../testUtils/usersService'; + +const resetRequiredMessage = 'You need to reset your password before you can use it again.'; + +testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('password reset required @nextjs', ({ app }) => { + test.describe.configure({ mode: 'parallel' }); + + let providerUsers: ReturnType; + const users: FakeUser[] = []; + + test.beforeAll(async () => { + const providerKeys = await resolveInstanceKeys('oauth-provider'); + providerUsers = createUserService( + withRetry(createClerkClient({ secretKey: providerKeys.sk, publishableKey: providerKeys.pk })), + ); + }); + + test.afterAll(async () => { + const u = await createTestUtils({ app }); + for (const user of users) { + await user.deleteIfExists(); + await u.services.users.deleteIfExists({ email: user.email }); + } + await app.teardown(); + }); + + const signInWithOAuthToUserWithReservedEmail = async (u: Awaited>) => { + const user = providerUsers.createFakeUser(test, { withUsername: true }); + users.push(user); + await providerUsers.createBapiUser(user); + await u.services.clerk.users.createUser({ + emailAddress: [user.email], + emailAddressIdentificationStatus: ['reserved'], + password: user.password, + }); + + await u.po.signIn.goTo(); + await u.page.getByRole('button', { name: 'E2E OAuth Provider' }).click(); + await u.page.getByText(/Sign in to .*oauth-provider/).waitFor(); + await u.po.signIn.setIdentifier(user.email); + await u.po.signIn.continue(); + await u.po.signIn.enterTestOtpCode(); + await grantOAuthConsent(u.page); + await u.page.getByText('SignedIn').waitFor(); + await u.po.expect.toBeSignedIn(); + + return user; + }; + + const signOut = async (u: Awaited>) => { + await u.page.signOut(); + await u.page.context().clearCookies(); + }; + + test('password step offers the reset, which signs the user in', async ({ page, context }) => { + const u = await createTestUtils({ app, page, context }); + const user = await signInWithOAuthToUserWithReservedEmail(u); + await signOut(u); + + await u.po.signIn.goTo(); + await u.po.signIn.setIdentifier(user.email); + await u.po.signIn.continue(); + await u.po.signIn.setPassword(user.password); + await u.po.signIn.continue(); + + await expect(u.page.getByText('Password reset required')).toBeVisible(); + await expect(u.page.getByText(resetRequiredMessage)).toBeVisible(); + await expect(u.po.signIn.getAltMethodsEmailCodeButton()).toBeVisible(); + await expect(u.page.getByText('Back', { exact: true })).toBeHidden(); + + await u.po.signIn.getResetPassword().click(); + await u.po.signIn.enterTestOtpCode(); + const newPassword = `${user.password}_reset`; + await u.po.signIn.setPassword(newPassword); + await u.po.signIn.setPasswordConfirmation(newPassword); + await u.po.signIn.getResetPassword().click(); + await u.po.expect.toBeSignedIn(); + }); + + test('password entered on the first step goes straight to the reset', async ({ page, context }) => { + const u = await createTestUtils({ app, page, context }); + const user = await signInWithOAuthToUserWithReservedEmail(u); + await signOut(u); + + await u.po.signIn.goTo(); + await u.po.signIn.signInWithEmailAndInstantPassword({ + email: user.email, + password: user.password, + waitForSession: false, + }); + + await expect(u.page.getByText('Password reset required')).toBeVisible(); + await expect(u.page.getByText(resetRequiredMessage)).toBeVisible(); + await expect(u.po.signIn.getPasswordInput()).toBeHidden(); + await expect(u.po.signIn.getResetPassword()).toBeVisible(); + await u.po.expect.toBeSignedOut(); + }); + + test('reverification resets the password while saving a new one', async ({ page, context }) => { + const u = await createTestUtils({ app, page, context }); + const user = await signInWithOAuthToUserWithReservedEmail(u); + + await u.po.userProfile.goTo(); + await u.po.userProfile.waitForMounted(); + await u.po.userProfile.switchToSecurityTab(); + await u.page.waitForFunction(async () => { + await window.Clerk.session.startVerification({ level: 'first_factor' }); + }); + + await u.page.getByRole('button', { name: /update password/i }).click(); + const newPassword = `${user.password}_new`; + await u.page.locator('input[name=newPassword]').fill(newPassword); + await u.page.locator('input[name=confirmPassword]').fill(newPassword); + await u.page.getByRole('button', { name: /^save$/i }).click(); + + await u.po.userVerification.waitForMounted(); + await u.po.userVerification.setPassword(user.password); + await u.po.userVerification.continue(); + + await expect(u.page.getByText('Password reset required')).toBeVisible(); + await expect( + u.page.getByText("Your current password needs to be reset. Confirm it's you to save your new password."), + ).toBeVisible(); + + await u.po.userVerification.getAltMethodsEmailCodeButton().first().click(); + await u.po.userVerification.enterTestOtpCode(); + await u.po.userVerification.waitForClosed(); + + await signOut(u); + await u.po.signIn.goTo(); + await u.po.signIn.signInWithEmailAndInstantPassword({ email: user.email, password: newPassword }); + await u.po.expect.toBeSignedIn(); + }); +}); + +const grantOAuthConsent = async (page: Page) => { + const allowAccessButton = page.getByRole('button', { name: 'Allow' }); + await expect(allowAccessButton).toBeVisible(); + await allowAccessButton.click(); +}; diff --git a/packages/localizations/src/ar-SA.ts b/packages/localizations/src/ar-SA.ts index d6ab51bf5fe..7f1433749de 100644 --- a/packages/localizations/src/ar-SA.ts +++ b/packages/localizations/src/ar-SA.ts @@ -1654,6 +1654,10 @@ export const arSA: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'يجب إعادة تعيين كلمة المرور الحالية. أكّد هويتك لحفظ كلمة المرور الجديدة.', + title: 'يلزم إعادة تعيين كلمة المرور', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1830,6 +1834,9 @@ export const arSA: LocalizationResource = { passwordPwned: { title: 'كلمة المرور غير آمنة', }, + passwordResetRequired: { + title: 'يلزم إعادة تعيين كلمة المرور', + }, passwordUntrusted: { title: undefined, }, @@ -2186,6 +2193,7 @@ export const arSA: LocalizationResource = { password_confirmation_attempts_remaining: 'كلمة المرور غير صحيحة. عدد المحاولات المتبقية: {{remainingAttempts}}.', password_confirmation_session_ended: 'انتهت جلستك لأنك وصلت إلى الحد الأقصى لمحاولات تأكيد كلمة المرور. تم قفل حسابك. يرجى التواصل مع الدعم لإلغاء قفله.', + password_reset_required: 'يجب عليك إعادة تعيين كلمة المرور قبل أن تتمكن من استخدامها مرة أخرى.', phone_number_exists: 'هذا الرقم مأخوذ الرجاء أختيار رقم آخر', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/be-BY.ts b/packages/localizations/src/be-BY.ts index 28176d39932..d98b342e8d4 100644 --- a/packages/localizations/src/be-BY.ts +++ b/packages/localizations/src/be-BY.ts @@ -1661,6 +1661,10 @@ export const beBY: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'Ваш бягучы пароль трэба скінуць. Пацвердзіце, што гэта вы, каб захаваць новы пароль.', + title: 'Патрабуецца скід пароля', + }, phoneCode: { formTitle: 'Увядзіце код, які быў адпраўлены на ваш тэлефон.', resendButton: 'Пераадправіць код на тэлефон', @@ -1838,6 +1842,9 @@ export const beBY: LocalizationResource = { passwordPwned: { title: 'Пароль быў узламаны', }, + passwordResetRequired: { + title: 'Патрабуецца скід пароля', + }, passwordUntrusted: { title: undefined, }, @@ -2197,6 +2204,7 @@ export const beBY: LocalizationResource = { password_confirmation_attempts_remaining: 'Няправільны пароль. Засталося спроб: {{remainingAttempts}}.', password_confirmation_session_ended: 'Ваш сеанс завершаны, бо вы дасягнулі ліміту спроб пацвярджэння пароля. Ваш уліковы запіс заблакаваны. Звярніцеся ў службу падтрымкі, каб разблакаваць яго.', + password_reset_required: 'Вам трэба скінуць пароль, перш чым вы зможаце выкарыстоўваць яго зноў.', phone_number_exists: 'Гэты нумар тэлефона ўжо заняты. Калі ласка, паспрабуйце іншы.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/bg-BG.ts b/packages/localizations/src/bg-BG.ts index bea527537a0..10389cdb67b 100644 --- a/packages/localizations/src/bg-BG.ts +++ b/packages/localizations/src/bg-BG.ts @@ -1658,6 +1658,11 @@ export const bgBG: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Текущата ви парола трябва да бъде нулирана. Потвърдете, че сте вие, за да запазите новата си парола.', + title: 'Необходимо е нулиране на паролата', + }, phoneCode: { formTitle: 'Enter the verification code sent to your phone number.', resendButton: "Didn't receive the code? Resend it.", @@ -1835,6 +1840,9 @@ export const bgBG: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: 'Необходимо е нулиране на паролата', + }, passwordUntrusted: { title: undefined, }, @@ -2191,6 +2199,7 @@ export const bgBG: LocalizationResource = { password_confirmation_attempts_remaining: 'Грешна парола. Остават ви {{remainingAttempts}} опита.', password_confirmation_session_ended: 'Сесията ви приключи, защото достигнахте лимита на опитите за потвърждение на паролата. Акаунтът ви е заключен. Свържете се с поддръжката, за да го отключите.', + password_reset_required: 'Трябва да нулирате паролата си, преди да можете да я използвате отново.', phone_number_exists: 'Този телефонен номер е зает. Моля, опитайте с друг.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/bn-IN.ts b/packages/localizations/src/bn-IN.ts index 3accfc3249a..b27ac1c2b5b 100644 --- a/packages/localizations/src/bn-IN.ts +++ b/packages/localizations/src/bn-IN.ts @@ -1666,6 +1666,11 @@ export const bnIN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'আপনার বর্তমান পাসওয়ার্ড রিসেট করতে হবে। আপনার নতুন পাসওয়ার্ড সংরক্ষণ করতে নিশ্চিত করুন যে এটি আপনি।', + title: 'পাসওয়ার্ড রিসেট করা প্রয়োজন', + }, phoneCode: { formTitle: 'যাচাইকরণ কোড', resendButton: 'কোনো কোড পাননি? পুনরায় পাঠান', @@ -1843,6 +1848,9 @@ export const bnIN: LocalizationResource = { passwordPwned: { title: 'পাসওয়ার্ড সমঝোতা হয়েছে', }, + passwordResetRequired: { + title: 'পাসওয়ার্ড রিসেট করা প্রয়োজন', + }, passwordUntrusted: { title: 'পাসওয়ার্ড অবিশ্বস্ত', }, @@ -2215,6 +2223,7 @@ export const bnIN: LocalizationResource = { password_confirmation_attempts_remaining: 'ভুল পাসওয়ার্ড। আপনার আর {{remainingAttempts}}টি প্রচেষ্টা বাকি আছে।', password_confirmation_session_ended: 'পাসওয়ার্ড নিশ্চিতকরণের প্রচেষ্টার সীমায় পৌঁছানোর কারণে আপনার সেশন শেষ হয়েছে। আপনার অ্যাকাউন্ট লক করা হয়েছে। এটি আনলক করতে সাপোর্টের সাথে যোগাযোগ করুন।', + password_reset_required: 'আবার ব্যবহার করার আগে আপনাকে আপনার পাসওয়ার্ড রিসেট করতে হবে।', phone_number_exists: 'এই ফোন নম্বর ব্যবহৃত হয়েছে। দয়া করে অন্য একটি ব্যবহার করুন।', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ca-ES.ts b/packages/localizations/src/ca-ES.ts index ee32dbe49c4..6a99fdbdfea 100644 --- a/packages/localizations/src/ca-ES.ts +++ b/packages/localizations/src/ca-ES.ts @@ -1666,6 +1666,11 @@ export const caES: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Cal restablir la teva contrasenya actual. Confirma que ets tu per desar la nova contrasenya.', + title: 'Cal restablir la contrasenya', + }, phoneCode: { formTitle: 'Introdueix el codi enviat al teu telèfon.', resendButton: 'Reenvia codi', @@ -1843,6 +1848,9 @@ export const caES: LocalizationResource = { passwordPwned: { title: 'La teva contrasenya ha estat compromesa', }, + passwordResetRequired: { + title: 'Cal restablir la contrasenya', + }, passwordUntrusted: { title: undefined, }, @@ -2204,6 +2212,7 @@ export const caES: LocalizationResource = { password_confirmation_attempts_remaining: 'Contrasenya incorrecta. Et queden {{remainingAttempts}} intents.', password_confirmation_session_ended: "La teva sessió ha finalitzat perquè has arribat al límit d'intents de confirmació de la contrasenya. El teu compte està bloquejat. Contacta amb el suport per desbloquejar-lo.", + password_reset_required: 'Has de restablir la contrasenya abans de poder tornar-la a utilitzar.', phone_number_exists: "Aquest número de telèfon ja està en ús. Si us plau, prova'n un altre.", protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/cs-CZ.ts b/packages/localizations/src/cs-CZ.ts index d5a03505223..e9cf026ac0a 100644 --- a/packages/localizations/src/cs-CZ.ts +++ b/packages/localizations/src/cs-CZ.ts @@ -1664,6 +1664,11 @@ export const csCZ: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Vaše současné heslo je potřeba resetovat. Potvrďte, že jste to vy, abyste mohli uložit nové heslo.', + title: 'Je vyžadován reset hesla', + }, phoneCode: { formTitle: 'Ověřovací kód', resendButton: 'Neobdrželi jste kód? Znovu poslat', @@ -1842,6 +1847,9 @@ export const csCZ: LocalizationResource = { passwordPwned: { title: 'Heslo kompromitováno', }, + passwordResetRequired: { + title: 'Je vyžadován reset hesla', + }, passwordUntrusted: { title: undefined, }, @@ -2202,6 +2210,7 @@ export const csCZ: LocalizationResource = { password_confirmation_attempts_remaining: 'Nesprávné heslo. Počet zbývajících pokusů: {{remainingAttempts}}.', password_confirmation_session_ended: 'Vaše relace byla ukončena, protože jste dosáhli limitu pokusů o potvrzení hesla. Váš účet je uzamčen. Pro jeho odemčení kontaktujte podporu.', + password_reset_required: 'Než budete moci heslo znovu použít, musíte ho resetovat.', phone_number_exists: 'Toto telefonní číslo se používá. Zkuste prosím jiný.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/da-DK.ts b/packages/localizations/src/da-DK.ts index 80574664dc3..3b83411179b 100644 --- a/packages/localizations/src/da-DK.ts +++ b/packages/localizations/src/da-DK.ts @@ -1656,6 +1656,11 @@ export const daDK: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Din nuværende adgangskode skal nulstilles. Bekræft, at det er dig, for at gemme din nye adgangskode.', + title: 'Nulstilling af adgangskode påkrævet', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1832,6 +1837,9 @@ export const daDK: LocalizationResource = { passwordPwned: { title: 'Sikkerhedsadvarsel', }, + passwordResetRequired: { + title: 'Nulstilling af adgangskode påkrævet', + }, passwordUntrusted: { title: undefined, }, @@ -2187,6 +2195,7 @@ export const daDK: LocalizationResource = { password_confirmation_attempts_remaining: 'Forkert adgangskode. Du har {{remainingAttempts}} forsøg tilbage.', password_confirmation_session_ended: 'Din session er afsluttet, fordi du har nået grænsen for forsøg på at bekræfte adgangskoden. Din konto er låst. Kontakt support for at få den låst op.', + password_reset_required: 'Du skal nulstille din adgangskode, før du kan bruge den igen.', phone_number_exists: 'Dette telefonnummer er allerede taget. Prøv et andet.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/de-DE.ts b/packages/localizations/src/de-DE.ts index 04f0179f085..61e5c296059 100644 --- a/packages/localizations/src/de-DE.ts +++ b/packages/localizations/src/de-DE.ts @@ -1673,6 +1673,11 @@ export const deDE: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ihr aktuelles Passwort muss zurückgesetzt werden. Bestätigen Sie Ihre Identität, um Ihr neues Passwort zu speichern.', + title: 'Passwort-Zurücksetzung erforderlich', + }, phoneCode: { formTitle: 'Geben Sie den Code ein, den wir an Ihre Telefonnummer gesendet haben.', resendButton: 'Code erneut senden', @@ -1850,6 +1855,9 @@ export const deDE: LocalizationResource = { passwordPwned: { title: 'Passwort kompromittiert', }, + passwordResetRequired: { + title: 'Passwort-Zurücksetzung erforderlich', + }, passwordUntrusted: { title: undefined, }, @@ -2220,6 +2228,7 @@ export const deDE: LocalizationResource = { password_confirmation_attempts_remaining: 'Falsches Passwort. Sie haben noch {{remainingAttempts}} Versuche.', password_confirmation_session_ended: 'Ihre Sitzung wurde beendet, da Sie die maximale Anzahl an Versuchen zur Passwortbestätigung erreicht haben. Ihr Konto ist gesperrt. Bitte kontaktieren Sie den Support, um es entsperren zu lassen.', + password_reset_required: 'Sie müssen Ihr Passwort zurücksetzen, bevor Sie es wieder verwenden können.', phone_number_exists: 'Diese Telefonnummer ist bereits vergeben. Bitte wählen Sie eine Andere.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/el-GR.ts b/packages/localizations/src/el-GR.ts index e862c3dd3c1..0e410f270b2 100644 --- a/packages/localizations/src/el-GR.ts +++ b/packages/localizations/src/el-GR.ts @@ -1664,6 +1664,11 @@ export const elGR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ο τρέχων κωδικός πρόσβασής σας πρέπει να επαναφερθεί. Επιβεβαιώστε ότι είστε εσείς για να αποθηκεύσετε τον νέο κωδικό πρόσβασής σας.', + title: 'Απαιτείται επαναφορά κωδικού πρόσβασης', + }, phoneCode: { formTitle: 'Κωδικός επαλήθευσης', resendButton: 'Δεν λάβατε κωδικό; Επαναποστολή', @@ -1843,6 +1848,9 @@ export const elGR: LocalizationResource = { passwordPwned: { title: 'Παραβιασμένος κωδικός', }, + passwordResetRequired: { + title: 'Απαιτείται επαναφορά κωδικού πρόσβασης', + }, passwordUntrusted: { title: 'Μη αξιόπιστος κωδικός πρόσβασης', }, @@ -2212,6 +2220,8 @@ export const elGR: LocalizationResource = { 'Λανθασμένος κωδικός πρόσβασης. Σας απομένουν {{remainingAttempts}} προσπάθειες.', password_confirmation_session_ended: 'Η συνεδρία σας έληξε επειδή φτάσατε το όριο προσπαθειών επιβεβαίωσης κωδικού πρόσβασης. Ο λογαριασμός σας είναι κλειδωμένος. Επικοινωνήστε με την υποστήριξη για να τον ξεκλειδώσετε.', + password_reset_required: + 'Πρέπει να επαναφέρετε τον κωδικό πρόσβασής σας για να μπορέσετε να τον χρησιμοποιήσετε ξανά.', phone_number_exists: 'Αυτός ο αριθμός τηλεφώνου χρησιμοποιείται ήδη. Δοκιμάστε έναν άλλο.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/en-GB.ts b/packages/localizations/src/en-GB.ts index 2ce1ad10d15..1a84cc193e9 100644 --- a/packages/localizations/src/en-GB.ts +++ b/packages/localizations/src/en-GB.ts @@ -1657,6 +1657,10 @@ export const enGB: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: "Your current password needs to be reset. Confirm it's you to save your new password.", + title: 'Password reset required', + }, phoneCode: { formTitle: 'Verification code', resendButton: "Didn't receive a code? Resend", @@ -1834,6 +1838,9 @@ export const enGB: LocalizationResource = { passwordPwned: { title: 'Password compromised', }, + passwordResetRequired: { + title: 'Password reset required', + }, passwordUntrusted: { title: undefined, }, @@ -2194,6 +2201,7 @@ export const enGB: LocalizationResource = { password_confirmation_attempts_remaining: 'Incorrect password. You have {{remainingAttempts}} attempts remaining.', password_confirmation_session_ended: 'Your session has ended because you reached the password confirmation attempt limit. Your account is locked. Please contact support to unlock it.', + password_reset_required: 'You need to reset your password before you can use it again.', phone_number_exists: 'This phone number is taken. Please try another.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/en-US.ts b/packages/localizations/src/en-US.ts index d4c6af4a741..c21f55f1432 100644 --- a/packages/localizations/src/en-US.ts +++ b/packages/localizations/src/en-US.ts @@ -1707,6 +1707,10 @@ export const enUS: LocalizationResource = { "Your current password was found in a data breach. Confirm it's you to save your new password.", title: 'Password compromised', }, + passwordResetRequired: { + subtitle__saveNewPassword: "Your current password needs to be reset. Confirm it's you to save your new password.", + title: 'Password reset required', + }, phoneCode: { formTitle: 'Verification code', resendButton: "Didn't receive a code? Resend", @@ -1884,6 +1888,9 @@ export const enUS: LocalizationResource = { passwordPwned: { title: 'Password compromised', }, + passwordResetRequired: { + title: 'Password reset required', + }, passwordUntrusted: { title: 'Password untrusted', }, @@ -2252,6 +2259,7 @@ export const enUS: LocalizationResource = { password_confirmation_attempts_remaining: 'Incorrect password. You have {{remainingAttempts}} attempts remaining.', password_confirmation_session_ended: 'Your session has ended because you reached the password confirmation attempt limit. Your account is locked. Please contact support to unlock it.', + password_reset_required: 'You need to reset your password before you can use it again.', phone_number_exists: undefined, protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/es-CR.ts b/packages/localizations/src/es-CR.ts index a9f03f100e9..a9ca04f9357 100644 --- a/packages/localizations/src/es-CR.ts +++ b/packages/localizations/src/es-CR.ts @@ -1662,6 +1662,11 @@ export const esCR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Debes restablecer tu contraseña actual. Confirma que eres tú para guardar tu nueva contraseña.', + title: 'Se requiere restablecer la contraseña', + }, phoneCode: { formTitle: 'Código de verificación', resendButton: '¿No recibiste un código? Reenviar', @@ -1840,6 +1845,9 @@ export const esCR: LocalizationResource = { passwordPwned: { title: 'Contraseña en peligro', }, + passwordResetRequired: { + title: 'Se requiere restablecer la contraseña', + }, passwordUntrusted: { title: undefined, }, @@ -2202,6 +2210,7 @@ export const esCR: LocalizationResource = { password_confirmation_attempts_remaining: 'Contraseña incorrecta. Te quedan {{remainingAttempts}} intentos.', password_confirmation_session_ended: 'Tu sesión finalizó porque alcanzaste el límite de intentos de confirmación de contraseña. Tu cuenta está bloqueada. Contacta a soporte para desbloquearla.', + password_reset_required: 'Debes restablecer tu contraseña antes de poder usarla de nuevo.', phone_number_exists: 'Este número de telefónico ya está en uso.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/es-ES.ts b/packages/localizations/src/es-ES.ts index 0c3bfe1a2bc..be780c651c2 100644 --- a/packages/localizations/src/es-ES.ts +++ b/packages/localizations/src/es-ES.ts @@ -1667,6 +1667,11 @@ export const esES: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Tienes que restablecer tu contraseña actual. Confirma que eres tú para guardar tu nueva contraseña.', + title: 'Es necesario restablecer la contraseña', + }, phoneCode: { formTitle: 'Introduce el código enviado a tu teléfono.', resendButton: 'Reenviar código', @@ -1843,6 +1848,9 @@ export const esES: LocalizationResource = { passwordPwned: { title: 'Tu contraseña ha sido comprometida', }, + passwordResetRequired: { + title: 'Es necesario restablecer la contraseña', + }, passwordUntrusted: { title: undefined, }, @@ -2203,6 +2211,7 @@ export const esES: LocalizationResource = { password_confirmation_attempts_remaining: 'Contraseña incorrecta. Te quedan {{remainingAttempts}} intentos.', password_confirmation_session_ended: 'Tu sesión ha finalizado porque has alcanzado el límite de intentos de confirmación de contraseña. Tu cuenta está bloqueada. Ponte en contacto con el soporte para desbloquearla.', + password_reset_required: 'Tienes que restablecer tu contraseña antes de poder volver a usarla.', phone_number_exists: 'Este número de teléfono ya está en uso. Por favor, inténtelo con otro.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/es-MX.ts b/packages/localizations/src/es-MX.ts index 85a657c62da..0f8e6e72f59 100644 --- a/packages/localizations/src/es-MX.ts +++ b/packages/localizations/src/es-MX.ts @@ -1663,6 +1663,11 @@ export const esMX: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Debes restablecer tu contraseña actual. Confirma que eres tú para guardar tu nueva contraseña.', + title: 'Se requiere restablecer la contraseña', + }, phoneCode: { formTitle: 'Código de verificación', resendButton: '¿No recibiste un código? Reenviar', @@ -1841,6 +1846,9 @@ export const esMX: LocalizationResource = { passwordPwned: { title: 'Contraseña en peligro', }, + passwordResetRequired: { + title: 'Se requiere restablecer la contraseña', + }, passwordUntrusted: { title: undefined, }, @@ -2203,6 +2211,7 @@ export const esMX: LocalizationResource = { password_confirmation_attempts_remaining: 'Contraseña incorrecta. Te quedan {{remainingAttempts}} intentos.', password_confirmation_session_ended: 'Tu sesión finalizó porque alcanzaste el límite de intentos de confirmación de contraseña. Tu cuenta está bloqueada. Contacta a soporte para desbloquearla.', + password_reset_required: 'Debes restablecer tu contraseña antes de poder usarla de nuevo.', phone_number_exists: 'Este número de telefónico ya está en uso.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/es-UY.ts b/packages/localizations/src/es-UY.ts index d12c8add59d..6bf88369ec3 100644 --- a/packages/localizations/src/es-UY.ts +++ b/packages/localizations/src/es-UY.ts @@ -1661,6 +1661,11 @@ export const esUY: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Tenés que restablecer tu contraseña actual. Confirmá que sos vos para guardar tu nueva contraseña.', + title: 'Es necesario restablecer la contraseña', + }, phoneCode: { formTitle: 'Código de verificación', resendButton: '¿No recibiste un código? Reenviar', @@ -1839,6 +1844,9 @@ export const esUY: LocalizationResource = { passwordPwned: { title: 'Contraseña comprometida', }, + passwordResetRequired: { + title: 'Es necesario restablecer la contraseña', + }, passwordUntrusted: { title: undefined, }, @@ -2204,6 +2212,7 @@ export const esUY: LocalizationResource = { password_confirmation_attempts_remaining: 'Contraseña incorrecta. Te quedan {{remainingAttempts}} intentos.', password_confirmation_session_ended: 'Tu sesión finalizó porque alcanzaste el límite de intentos de confirmación de contraseña. Tu cuenta está bloqueada. Contactá al soporte para desbloquearla.', + password_reset_required: 'Tenés que restablecer tu contraseña antes de poder usarla de nuevo.', phone_number_exists: 'Este número de teléfono ya está en uso. Por favor, probá con otro.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/fa-IR.ts b/packages/localizations/src/fa-IR.ts index ee3fe175f77..01d56418668 100644 --- a/packages/localizations/src/fa-IR.ts +++ b/packages/localizations/src/fa-IR.ts @@ -1666,6 +1666,11 @@ export const faIR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'رمز عبور فعلی شما باید بازنشانی شود. برای ذخیره رمز عبور جدید، تأیید کنید که خودتان هستید.', + title: 'بازنشانی رمز عبور الزامی است', + }, phoneCode: { formTitle: 'کد تأیید', resendButton: 'کدی دریافت نکردید؟ ارسال دوباره', @@ -1844,6 +1849,9 @@ export const faIR: LocalizationResource = { passwordPwned: { title: 'رمز عبور به خطر افتاده است', }, + passwordResetRequired: { + title: 'بازنشانی رمز عبور الزامی است', + }, passwordUntrusted: { title: undefined, }, @@ -2201,6 +2209,7 @@ export const faIR: LocalizationResource = { password_confirmation_attempts_remaining: 'رمز عبور نادرست است. {{remainingAttempts}} تلاش دیگر باقی مانده است.', password_confirmation_session_ended: 'جلسه شما به پایان رسید زیرا به حد مجاز تلاش‌های تأیید رمز عبور رسیدید. حساب شما قفل شده است. برای باز کردن قفل آن با پشتیبانی تماس بگیرید.', + password_reset_required: 'قبل از اینکه بتوانید دوباره از رمز عبور خود استفاده کنید، باید آن را بازنشانی کنید.', phone_number_exists: 'این شماره تلفن قبلاً استفاده شده است.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/fi-FI.ts b/packages/localizations/src/fi-FI.ts index 53e1b6842b6..ce3c73b2ceb 100644 --- a/packages/localizations/src/fi-FI.ts +++ b/packages/localizations/src/fi-FI.ts @@ -1668,6 +1668,11 @@ export const fiFI: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Nykyinen salasanasi on nollattava. Vahvista henkilöllisyytesi tallentaaksesi uuden salasanasi.', + title: 'Salasana on nollattava', + }, phoneCode: { formTitle: 'Vahvistuskoodi', resendButton: 'Etkö saanut koodia? Lähetä uudelleen', @@ -1845,6 +1850,9 @@ export const fiFI: LocalizationResource = { passwordPwned: { title: 'Salasana tietomurrossa', }, + passwordResetRequired: { + title: 'Salasana on nollattava', + }, passwordUntrusted: { title: 'Salasana epäluotettava', }, @@ -2217,6 +2225,7 @@ export const fiFI: LocalizationResource = { password_confirmation_attempts_remaining: 'Väärä salasana. Sinulla on {{remainingAttempts}} yritystä jäljellä.', password_confirmation_session_ended: 'Istuntosi päättyi, koska saavutit salasanan vahvistusyritysten rajan. Tilisi on lukittu. Ota yhteyttä tukeen lukituksen avaamiseksi.', + password_reset_required: 'Sinun on nollattava salasanasi, ennen kuin voit käyttää sitä uudelleen.', phone_number_exists: 'Tämä puhelinnumero on jo käytössä. Kokeile toista.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/fr-FR.ts b/packages/localizations/src/fr-FR.ts index a6aa78e3ee8..ba7a14475de 100644 --- a/packages/localizations/src/fr-FR.ts +++ b/packages/localizations/src/fr-FR.ts @@ -1674,6 +1674,11 @@ export const frFR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Votre mot de passe actuel doit être réinitialisé. Confirmez votre identité pour enregistrer votre nouveau mot de passe.', + title: 'Réinitialisation du mot de passe requise', + }, phoneCode: { formTitle: 'Entrez le code de vérification', resendButton: 'Renvoyer le code', @@ -1850,6 +1855,9 @@ export const frFR: LocalizationResource = { passwordPwned: { title: 'Mot de passe compromis', }, + passwordResetRequired: { + title: 'Réinitialisation du mot de passe requise', + }, passwordUntrusted: { title: undefined, }, @@ -2212,6 +2220,7 @@ export const frFR: LocalizationResource = { password_confirmation_attempts_remaining: 'Mot de passe incorrect. Il vous reste {{remainingAttempts}} tentatives.', password_confirmation_session_ended: 'Votre session a pris fin, car vous avez atteint la limite de tentatives de confirmation du mot de passe. Votre compte est verrouillé. Contactez le support pour le déverrouiller.', + password_reset_required: "Vous devez réinitialiser votre mot de passe avant de pouvoir l'utiliser à nouveau.", phone_number_exists: 'Ce numéro de téléphone est déjà utilisé. Veuillez essayer un autre.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/he-IL.ts b/packages/localizations/src/he-IL.ts index ca8e7c7873a..9e260c7841e 100644 --- a/packages/localizations/src/he-IL.ts +++ b/packages/localizations/src/he-IL.ts @@ -1651,6 +1651,10 @@ export const heIL: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'יש לאפס את הסיסמה הנוכחית שלך. אשר את זהותך כדי לשמור את הסיסמה החדשה.', + title: 'נדרש איפוס סיסמה', + }, phoneCode: { formTitle: 'קוד אימות', resendButton: 'לא קיבלת קוד? שלח שוב', @@ -1825,6 +1829,9 @@ export const heIL: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: 'נדרש איפוס סיסמה', + }, passwordUntrusted: { title: undefined, }, @@ -2178,6 +2185,7 @@ export const heIL: LocalizationResource = { password_confirmation_attempts_remaining: 'סיסמה שגויה. נותרו לך {{remainingAttempts}} ניסיונות.', password_confirmation_session_ended: 'הסשן שלך הסתיים מכיוון שהגעת למגבלת ניסיונות אימות הסיסמה. החשבון שלך נעול. פנה לתמיכה כדי לבטל את הנעילה.', + password_reset_required: 'יש לאפס את הסיסמה לפני שניתן יהיה להשתמש בה שוב.', phone_number_exists: 'מספר הטלפון הזה כבר בשימוש. אנא נסה מספר אחר.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/hi-IN.ts b/packages/localizations/src/hi-IN.ts index 04c4d227151..bb6f54ed132 100644 --- a/packages/localizations/src/hi-IN.ts +++ b/packages/localizations/src/hi-IN.ts @@ -1666,6 +1666,11 @@ export const hiIN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'आपके वर्तमान पासवर्ड को रीसेट करना होगा। अपना नया पासवर्ड सहेजने के लिए पुष्टि करें कि यह आप ही हैं।', + title: 'पासवर्ड रीसेट करना आवश्यक है', + }, phoneCode: { formTitle: 'सत्यापन कोड', resendButton: 'कोड नहीं मिला? फिर से भेजें', @@ -1843,6 +1848,9 @@ export const hiIN: LocalizationResource = { passwordPwned: { title: 'पासवर्ड समझौता हो गया', }, + passwordResetRequired: { + title: 'पासवर्ड रीसेट करना आवश्यक है', + }, passwordUntrusted: { title: 'पासवर्ड अविश्वसनीय', }, @@ -2216,6 +2224,7 @@ export const hiIN: LocalizationResource = { password_confirmation_attempts_remaining: 'गलत पासवर्ड। आपके पास {{remainingAttempts}} प्रयास शेष हैं।', password_confirmation_session_ended: 'पासवर्ड पुष्टि प्रयासों की सीमा पूरी होने के कारण आपका सत्र समाप्त हो गया है। आपका खाता लॉक कर दिया गया है। इसे अनलॉक करने के लिए सहायता से संपर्क करें।', + password_reset_required: 'इसे फिर से उपयोग करने से पहले आपको अपना पासवर्ड रीसेट करना होगा।', phone_number_exists: 'यह फोन नंबर पहले से लिया गया है। कृपया दूसरा प्रयास करें।', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/hr-HR.ts b/packages/localizations/src/hr-HR.ts index f68537c365b..cd884d38bfd 100644 --- a/packages/localizations/src/hr-HR.ts +++ b/packages/localizations/src/hr-HR.ts @@ -1667,6 +1667,11 @@ export const hrHR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Vašu trenutnu lozinku potrebno je resetirati. Potvrdite svoj identitet kako biste spremili novu lozinku.', + title: 'Potrebno je resetirati lozinku', + }, phoneCode: { formTitle: 'Verifikacijski kod', resendButton: 'Niste primili kod? Pošalji ponovno', @@ -1845,6 +1850,9 @@ export const hrHR: LocalizationResource = { passwordPwned: { title: 'Lozinka je kompromitirana', }, + passwordResetRequired: { + title: 'Potrebno je resetirati lozinku', + }, passwordUntrusted: { title: 'Lozinka nije pouzdana', }, @@ -2221,6 +2229,7 @@ export const hrHR: LocalizationResource = { password_confirmation_attempts_remaining: 'Neispravna lozinka. Preostalo pokušaja: {{remainingAttempts}}.', password_confirmation_session_ended: 'Vaša sesija je završena jer ste dosegnuli ograničenje pokušaja potvrde lozinke. Vaš je račun zaključan. Za otključavanje se obratite podršci.', + password_reset_required: 'Morate resetirati lozinku prije nego što je ponovno možete koristiti.', phone_number_exists: 'Ovaj telefonski broj je zauzet. Molimo pokušajte s drugim.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/hu-HU.ts b/packages/localizations/src/hu-HU.ts index 87a745adbe8..a74682d1c61 100644 --- a/packages/localizations/src/hu-HU.ts +++ b/packages/localizations/src/hu-HU.ts @@ -1669,6 +1669,11 @@ export const huHU: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'A jelenlegi jelszavadat vissza kell állítani. Erősítsd meg, hogy te vagy az, hogy elmenthesd az új jelszavad.', + title: 'Jelszó-visszaállítás szükséges', + }, phoneCode: { formTitle: 'Visszaigazoló kód', resendButton: 'Nem kaptad meg a kódot? Újraküldés', @@ -1847,6 +1852,9 @@ export const huHU: LocalizationResource = { passwordPwned: { title: 'Jelszó kompromitálódott', }, + passwordResetRequired: { + title: 'Jelszó-visszaállítás szükséges', + }, passwordUntrusted: { title: 'Nem megbízható jelszó', }, @@ -2220,6 +2228,7 @@ export const huHU: LocalizationResource = { password_confirmation_attempts_remaining: 'Helytelen jelszó. {{remainingAttempts}} próbálkozásod maradt.', password_confirmation_session_ended: 'A munkameneted véget ért, mert elérted a jelszó-megerősítési kísérletek korlátját. A fiókod zárolva van. A feloldásához vedd fel a kapcsolatot az ügyfélszolgálattal.', + password_reset_required: 'Vissza kell állítanod a jelszavad, mielőtt újra használhatnád.', phone_number_exists: 'Ez a telefonszám már foglalt. Kérlek próbálj meg egy másikat.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/id-ID.ts b/packages/localizations/src/id-ID.ts index 9261d940f1e..4869b572062 100644 --- a/packages/localizations/src/id-ID.ts +++ b/packages/localizations/src/id-ID.ts @@ -1660,6 +1660,11 @@ export const idID: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Kata sandi Anda saat ini perlu direset. Konfirmasi bahwa ini Anda untuk menyimpan kata sandi baru Anda.', + title: 'Reset kata sandi diperlukan', + }, phoneCode: { formTitle: 'Kode verifikasi', resendButton: 'Tidak menerima kode? Kirim ulang', @@ -1838,6 +1843,9 @@ export const idID: LocalizationResource = { passwordPwned: { title: 'Kata sandi terkompromi', }, + passwordResetRequired: { + title: 'Reset kata sandi diperlukan', + }, passwordUntrusted: { title: undefined, }, @@ -2201,6 +2209,7 @@ export const idID: LocalizationResource = { 'Kata sandi salah. Anda memiliki {{remainingAttempts}} percobaan tersisa.', password_confirmation_session_ended: 'Sesi Anda telah berakhir karena Anda mencapai batas percobaan konfirmasi kata sandi. Akun Anda terkunci. Hubungi dukungan untuk membuka kuncinya.', + password_reset_required: 'Anda perlu mereset kata sandi sebelum dapat menggunakannya lagi.', phone_number_exists: 'Nomor telepon ini sudah digunakan. Silakan coba yang lain.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/is-IS.ts b/packages/localizations/src/is-IS.ts index 561ec271a1b..ef1072c11e0 100644 --- a/packages/localizations/src/is-IS.ts +++ b/packages/localizations/src/is-IS.ts @@ -1668,6 +1668,11 @@ export const isIS: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Endurstilla þarf núverandi lykilorðið þitt. Staðfestu að þetta sért þú til að vista nýja lykilorðið þitt.', + title: 'Endurstilla þarf lykilorð', + }, phoneCode: { formTitle: 'Staðfestingarkóði', resendButton: 'Fékkstu ekki kóða? Senda aftur', @@ -1846,6 +1851,9 @@ export const isIS: LocalizationResource = { passwordPwned: { title: 'Lykilorð brotið', }, + passwordResetRequired: { + title: 'Endurstilla þarf lykilorð', + }, passwordUntrusted: { title: 'Lykilorð óáreiðanlegt', }, @@ -2218,6 +2226,7 @@ export const isIS: LocalizationResource = { password_confirmation_attempts_remaining: 'Rangt lykilorð. Þú átt {{remainingAttempts}} tilraunir eftir.', password_confirmation_session_ended: 'Lotunni þinni lauk vegna þess að þú náðir hámarksfjölda tilrauna til að staðfesta lykilorð. Aðgangnum þínum hefur verið læst. Hafðu samband við stuðning til að aflæsa honum.', + password_reset_required: 'Þú þarft að endurstilla lykilorðið þitt áður en þú getur notað það aftur.', phone_number_exists: 'Þetta símanúmer er þegar í notkun. Vinsamlegast reyndu annað.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/it-IT.ts b/packages/localizations/src/it-IT.ts index 015ef1ed0bd..86ddcb671f3 100644 --- a/packages/localizations/src/it-IT.ts +++ b/packages/localizations/src/it-IT.ts @@ -1666,6 +1666,11 @@ export const itIT: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'La tua password attuale deve essere reimpostata. Conferma la tua identità per salvare la nuova password.', + title: 'Reimpostazione della password richiesta', + }, phoneCode: { formTitle: 'Inserisci il codice che ti è stato inviato via SMS.', resendButton: 'Invia di nuovo il codice', @@ -1842,6 +1847,9 @@ export const itIT: LocalizationResource = { passwordPwned: { title: 'La tua password è stata trovata in un data breach.', }, + passwordResetRequired: { + title: 'Reimpostazione della password richiesta', + }, passwordUntrusted: { title: undefined, }, @@ -2199,6 +2207,7 @@ export const itIT: LocalizationResource = { password_confirmation_attempts_remaining: 'Password errata. Hai ancora {{remainingAttempts}} tentativi.', password_confirmation_session_ended: 'La sessione è terminata perché hai raggiunto il limite di tentativi di conferma della password. Il tuo account è bloccato. Contatta il supporto per sbloccarlo.', + password_reset_required: 'Devi reimpostare la password prima di poterla usare di nuovo.', phone_number_exists: 'Questo numero di telefono è già in uso. Per favore, prova con un altro.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ja-JP.ts b/packages/localizations/src/ja-JP.ts index a3aa90b6d7f..979729b7e82 100644 --- a/packages/localizations/src/ja-JP.ts +++ b/packages/localizations/src/ja-JP.ts @@ -1667,6 +1667,11 @@ export const jaJP: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + '現在のパスワードをリセットする必要があります。新しいパスワードを保存するには、本人確認を行ってください。', + title: 'パスワードのリセットが必要です', + }, phoneCode: { formTitle: '検証コード', resendButton: 'コードが届いていませんか?再送信', @@ -1844,6 +1849,9 @@ export const jaJP: LocalizationResource = { passwordPwned: { title: '漏洩したパスワード', }, + passwordResetRequired: { + title: 'パスワードのリセットが必要です', + }, passwordUntrusted: { title: '信頼できないパスワード', }, @@ -2214,6 +2222,7 @@ export const jaJP: LocalizationResource = { password_confirmation_attempts_remaining: 'パスワードが正しくありません。残り{{remainingAttempts}}回試行できます。', password_confirmation_session_ended: 'パスワード確認の試行回数の上限に達したため、セッションが終了しました。アカウントがロックされています。ロックを解除するには、サポートまでご連絡ください。', + password_reset_required: 'パスワードを再び使用するには、リセットする必要があります。', phone_number_exists: 'この電話番号は既に使用されています。別のものをお試しください。', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/kk-KZ.ts b/packages/localizations/src/kk-KZ.ts index 610c0976ef6..302f3569bc4 100644 --- a/packages/localizations/src/kk-KZ.ts +++ b/packages/localizations/src/kk-KZ.ts @@ -1650,6 +1650,11 @@ export const kkKZ: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ағымдағы құпия сөзіңізді қалпына келтіру қажет. Жаңа құпия сөзді сақтау үшін бұл сіз екеніңізді растаңыз.', + title: 'Құпия сөзді қалпына келтіру қажет', + }, phoneCode: { formTitle: 'Растау коды', resendButton: 'Код алмадыңыз ба? Қайта жіберу', @@ -1826,6 +1831,9 @@ export const kkKZ: LocalizationResource = { passwordPwned: { title: 'Құпия сөз қауіпті', }, + passwordResetRequired: { + title: 'Құпия сөзді қалпына келтіру қажет', + }, passwordUntrusted: { title: undefined, }, @@ -2180,6 +2188,7 @@ export const kkKZ: LocalizationResource = { password_confirmation_attempts_remaining: 'Құпиясөз қате. Сізде {{remainingAttempts}} әрекет қалды.', password_confirmation_session_ended: 'Құпиясөзді растау әрекеттерінің шегіне жеткендіктен, сеансыңыз аяқталды. Есептік жазбаңыз құлыпталды. Құлыпты ашу үшін қолдау қызметіне хабарласыңыз.', + password_reset_required: 'Құпия сөзді қайта пайдалану үшін алдымен оны қалпына келтіруіңіз керек.', phone_number_exists: 'Бұл телефон нөмірі тіркелген. Басқасын қолданыңыз.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ko-KR.ts b/packages/localizations/src/ko-KR.ts index fd6b6a10e8c..7b1f224155e 100644 --- a/packages/localizations/src/ko-KR.ts +++ b/packages/localizations/src/ko-KR.ts @@ -1655,6 +1655,10 @@ export const koKR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: '현재 비밀번호를 재설정해야 해요. 새 비밀번호를 저장하려면 본인 확인을 해 주세요.', + title: '비밀번호 재설정이 필요해요', + }, phoneCode: { formTitle: '인증 코드', resendButton: '코드를 받지 못하셨나요? 다시 보내기', @@ -1829,6 +1833,9 @@ export const koKR: LocalizationResource = { passwordPwned: { title: '유출된 비밀번호예요', }, + passwordResetRequired: { + title: '비밀번호 재설정이 필요해요', + }, passwordUntrusted: { title: '신뢰할 수 없는 비밀번호예요', }, @@ -2187,6 +2194,7 @@ export const koKR: LocalizationResource = { password_confirmation_attempts_remaining: '비밀번호가 올바르지 않습니다. 남은 시도 횟수: {{remainingAttempts}}회', password_confirmation_session_ended: '비밀번호 확인 시도 횟수 한도에 도달하여 세션이 종료되었습니다. 계정이 잠겼습니다. 잠금을 해제하려면 지원팀에 문의하세요.', + password_reset_required: '비밀번호를 다시 사용하려면 먼저 재설정해야 해요.', phone_number_exists: '이 전화번호는 이미 사용 중이에요. 다른 번호를 시도해 주세요.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/mn-MN.ts b/packages/localizations/src/mn-MN.ts index fdae40bd0a2..028ec9055cb 100644 --- a/packages/localizations/src/mn-MN.ts +++ b/packages/localizations/src/mn-MN.ts @@ -1659,6 +1659,11 @@ export const mnMN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Таны одоогийн нууц үгийг шинэчлэх шаардлагатай. Шинэ нууц үгээ хадгалахын тулд өөрийгөө баталгаажуулна уу.', + title: 'Нууц үгээ шинэчлэх шаардлагатай', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1837,6 +1842,9 @@ export const mnMN: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: 'Нууц үгээ шинэчлэх шаардлагатай', + }, passwordUntrusted: { title: undefined, }, @@ -2193,6 +2201,7 @@ export const mnMN: LocalizationResource = { password_confirmation_attempts_remaining: 'Нууц үг буруу байна. Танд {{remainingAttempts}} оролдлого үлдлээ.', password_confirmation_session_ended: 'Нууц үг баталгаажуулах оролдлогын хязгаарт хүрсэн тул таны сесс дууслаа. Таны бүртгэл түгжигдсэн байна. Түгжээг тайлахын тулд дэмжлэгтэй холбогдоно уу.', + password_reset_required: 'Нууц үгээ дахин ашиглахын өмнө түүнийг шинэчлэх шаардлагатай.', phone_number_exists: 'Энэ утасны дугаарыг авсан. Өөр оролдоно уу.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ms-MY.ts b/packages/localizations/src/ms-MY.ts index 79a029b6d16..41cf5fcde32 100644 --- a/packages/localizations/src/ms-MY.ts +++ b/packages/localizations/src/ms-MY.ts @@ -1670,6 +1670,11 @@ export const msMY: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Kata laluan semasa anda perlu ditetapkan semula. Sahkan bahawa ini anda untuk menyimpan kata laluan baharu anda.', + title: 'Tetapan semula kata laluan diperlukan', + }, phoneCode: { formTitle: 'Kod pengesahan', resendButton: 'Tidak menerima kod? Hantar semula', @@ -1848,6 +1853,9 @@ export const msMY: LocalizationResource = { passwordPwned: { title: 'Kata laluan dikompromi', }, + passwordResetRequired: { + title: 'Tetapan semula kata laluan diperlukan', + }, passwordUntrusted: { title: 'Kata laluan tidak dipercayai', }, @@ -2225,6 +2233,7 @@ export const msMY: LocalizationResource = { password_confirmation_attempts_remaining: 'Kata laluan salah. Anda mempunyai {{remainingAttempts}} percubaan lagi.', password_confirmation_session_ended: 'Sesi anda telah tamat kerana anda telah mencapai had percubaan pengesahan kata laluan. Akaun anda telah dikunci. Hubungi sokongan untuk membuka kuncinya.', + password_reset_required: 'Anda perlu menetapkan semula kata laluan anda sebelum boleh menggunakannya semula.', phone_number_exists: 'Nombor telefon ini telah diambil. Sila cuba yang lain.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/nb-NO.ts b/packages/localizations/src/nb-NO.ts index 71393aebe02..83bb7c0846f 100644 --- a/packages/localizations/src/nb-NO.ts +++ b/packages/localizations/src/nb-NO.ts @@ -1669,6 +1669,11 @@ export const nbNO: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Det nåværende passordet ditt må tilbakestilles. Bekreft at det er deg for å lagre det nye passordet ditt.', + title: 'Passordet må tilbakestilles', + }, phoneCode: { formTitle: 'Verifiseringskode', resendButton: 'Ikke mottatt kode? Send på nytt', @@ -1846,6 +1851,9 @@ export const nbNO: LocalizationResource = { passwordPwned: { title: 'Passordet er kompromittert', }, + passwordResetRequired: { + title: 'Passordet må tilbakestilles', + }, passwordUntrusted: { title: 'Passordet er ikke pålitelig', }, @@ -2218,6 +2226,7 @@ export const nbNO: LocalizationResource = { password_confirmation_attempts_remaining: 'Feil passord. Du har {{remainingAttempts}} forsøk igjen.', password_confirmation_session_ended: 'Økten din er avsluttet fordi du nådde grensen for forsøk på passordbekreftelse. Kontoen din er låst. Kontakt brukerstøtte for å låse den opp.', + password_reset_required: 'Du må tilbakestille passordet ditt før du kan bruke det igjen.', phone_number_exists: 'Dette telefonnummeret er allerede i bruk. Vennligst bruk et annet telefonnummer.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/nl-BE.ts b/packages/localizations/src/nl-BE.ts index 39bd74c0f56..f0513ee7bb2 100644 --- a/packages/localizations/src/nl-BE.ts +++ b/packages/localizations/src/nl-BE.ts @@ -1660,6 +1660,11 @@ export const nlBE: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Je huidige wachtwoord moet worden gereset. Bevestig dat jij het bent om je nieuwe wachtwoord op te slaan.', + title: 'Wachtwoord resetten vereist', + }, phoneCode: { formTitle: 'Verificatiecode', resendButton: 'Niet ontvangen? Opnieuw verzenden', @@ -1835,6 +1840,9 @@ export const nlBE: LocalizationResource = { passwordPwned: { title: 'Dit wachtwoord is gelekt bij een datalek. Kies een ander wachtwoord om veiligheidsredenen.', }, + passwordResetRequired: { + title: 'Wachtwoord resetten vereist', + }, passwordUntrusted: { title: undefined, }, @@ -2191,6 +2199,7 @@ export const nlBE: LocalizationResource = { password_confirmation_attempts_remaining: 'Onjuist wachtwoord. Je hebt nog {{remainingAttempts}} pogingen.', password_confirmation_session_ended: 'Je sessie is beëindigd omdat je het maximale aantal pogingen voor wachtwoordbevestiging hebt bereikt. Je account is vergrendeld. Neem contact op met de ondersteuning om het te ontgrendelen.', + password_reset_required: 'Je moet je wachtwoord resetten voordat je het weer kunt gebruiken.', phone_number_exists: 'Dit telefoonnummer is al in gebruik. Probeer een ander nummer.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/nl-NL.ts b/packages/localizations/src/nl-NL.ts index dc1eb10320a..ad2496140c3 100644 --- a/packages/localizations/src/nl-NL.ts +++ b/packages/localizations/src/nl-NL.ts @@ -1660,6 +1660,11 @@ export const nlNL: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Je huidige wachtwoord moet worden gereset. Bevestig dat jij het bent om je nieuwe wachtwoord op te slaan.', + title: 'Wachtwoord resetten vereist', + }, phoneCode: { formTitle: 'Verificatiecode', resendButton: 'Niet ontvangen? Opnieuw verzenden', @@ -1835,6 +1840,9 @@ export const nlNL: LocalizationResource = { passwordPwned: { title: 'Dit wachtwoord is gelekt bij een datalek. Kies een ander wachtwoord om veiligheidsredenen.', }, + passwordResetRequired: { + title: 'Wachtwoord resetten vereist', + }, passwordUntrusted: { title: undefined, }, @@ -2191,6 +2199,7 @@ export const nlNL: LocalizationResource = { password_confirmation_attempts_remaining: 'Onjuist wachtwoord. Je hebt nog {{remainingAttempts}} pogingen.', password_confirmation_session_ended: 'Je sessie is beëindigd omdat je het maximale aantal pogingen voor wachtwoordbevestiging hebt bereikt. Je account is vergrendeld. Neem contact op met de ondersteuning om het te ontgrendelen.', + password_reset_required: 'Je moet je wachtwoord resetten voordat je het weer kunt gebruiken.', phone_number_exists: 'Dit telefoonnummer is al in gebruik. Probeer een ander nummer.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/pl-PL.ts b/packages/localizations/src/pl-PL.ts index 8f6a627160b..f0fd89a758e 100644 --- a/packages/localizations/src/pl-PL.ts +++ b/packages/localizations/src/pl-PL.ts @@ -1658,6 +1658,11 @@ export const plPL: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Twoje obecne hasło musi zostać zresetowane. Potwierdź swoją tożsamość, aby zapisać nowe hasło.', + title: 'Wymagane zresetowanie hasła', + }, phoneCode: { formTitle: 'Kod weryfikacyjny', resendButton: 'Nie otrzymałeś kodu? Wyślij ponownie', @@ -1836,6 +1841,9 @@ export const plPL: LocalizationResource = { passwordPwned: { title: 'Hasło skompromitowane', }, + passwordResetRequired: { + title: 'Wymagane zresetowanie hasła', + }, passwordUntrusted: { title: undefined, }, @@ -2199,6 +2207,7 @@ export const plPL: LocalizationResource = { password_confirmation_attempts_remaining: 'Nieprawidłowe hasło. Pozostałe próby: {{remainingAttempts}}.', password_confirmation_session_ended: 'Twoja sesja została zakończona, ponieważ osiągnięto limit prób potwierdzenia hasła. Twoje konto zostało zablokowane. Skontaktuj się z pomocą, aby je odblokować.', + password_reset_required: 'Przed ponownym użyciem hasła musisz je zresetować.', phone_number_exists: 'Numer telefonu jest już zajęty. Proszę spróbować innego.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/pt-BR.ts b/packages/localizations/src/pt-BR.ts index 0123d4d5358..24c7c6d4b1c 100644 --- a/packages/localizations/src/pt-BR.ts +++ b/packages/localizations/src/pt-BR.ts @@ -1668,6 +1668,11 @@ export const ptBR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Sua senha atual precisa ser redefinida. Confirme que é você para salvar sua nova senha.', + title: 'Redefinição de senha necessária', + }, phoneCode: { formTitle: 'Código de verificação', resendButton: 'Reenviar código', @@ -1845,6 +1850,9 @@ export const ptBR: LocalizationResource = { passwordPwned: { title: 'Senha comprometida', }, + passwordResetRequired: { + title: 'Redefinição de senha necessária', + }, passwordUntrusted: { title: 'Senha não confiável', }, @@ -2209,6 +2217,7 @@ export const ptBR: LocalizationResource = { password_confirmation_attempts_remaining: 'Senha incorreta. Você tem mais {{remainingAttempts}} tentativas.', password_confirmation_session_ended: 'Sua sessão foi encerrada porque você atingiu o limite de tentativas de confirmação de senha. Sua conta está bloqueada. Entre em contato com o suporte para desbloqueá-la.', + password_reset_required: 'Você precisa redefinir sua senha antes de poder usá-la novamente.', phone_number_exists: 'Este número de telefone já está em uso. Por favor, tente outro.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/pt-PT.ts b/packages/localizations/src/pt-PT.ts index 00ed29b2bcb..aae92a20731 100644 --- a/packages/localizations/src/pt-PT.ts +++ b/packages/localizations/src/pt-PT.ts @@ -1669,6 +1669,11 @@ export const ptPT: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'A sua palavra-passe atual tem de ser reposta. Confirme a sua identidade para guardar a nova palavra-passe.', + title: 'Reposição da palavra-passe necessária', + }, phoneCode: { formTitle: 'Código de verificação', resendButton: 'Não recebeu um código? Reenviar', @@ -1845,6 +1850,9 @@ export const ptPT: LocalizationResource = { passwordPwned: { title: 'Este password foi comprometido em uma violação de dados. Escolha outro por motivos de segurança.', }, + passwordResetRequired: { + title: 'Reposição da palavra-passe necessária', + }, passwordUntrusted: { title: 'Palavra-passe não fiável', }, @@ -2215,6 +2223,7 @@ export const ptPT: LocalizationResource = { password_confirmation_attempts_remaining: 'Palavra-passe incorreta. Tem mais {{remainingAttempts}} tentativas.', password_confirmation_session_ended: 'A sua sessão terminou porque atingiu o limite de tentativas de confirmação da palavra-passe. A sua conta está bloqueada. Contacte o suporte para a desbloquear.', + password_reset_required: 'Tem de repor a sua palavra-passe antes de a poder utilizar novamente.', phone_number_exists: 'Este número de telemóvel já está em uso. Por favor, tente outro.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ro-RO.ts b/packages/localizations/src/ro-RO.ts index 7234628a4fd..dc1e5dde2c6 100644 --- a/packages/localizations/src/ro-RO.ts +++ b/packages/localizations/src/ro-RO.ts @@ -1669,6 +1669,10 @@ export const roRO: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'Parola ta actuală trebuie resetată. Confirmă că ești tu pentru a salva parola nouă.', + title: 'Este necesară resetarea parolei', + }, phoneCode: { formTitle: 'Cod de verificare', resendButton: 'Nu ai primit un cod? Retrimite', @@ -1847,6 +1851,9 @@ export const roRO: LocalizationResource = { passwordPwned: { title: 'Parola este compromisă', }, + passwordResetRequired: { + title: 'Este necesară resetarea parolei', + }, passwordUntrusted: { title: undefined, }, @@ -2210,6 +2217,7 @@ export const roRO: LocalizationResource = { password_confirmation_attempts_remaining: 'Parolă incorectă. Încercări rămase: {{remainingAttempts}}.', password_confirmation_session_ended: 'Sesiunea dvs. s-a încheiat deoarece ați atins limita de încercări de confirmare a parolei. Contul dvs. este blocat. Contactați suportul pentru a-l debloca.', + password_reset_required: 'Trebuie să îți resetezi parola înainte de a o putea folosi din nou.', phone_number_exists: undefined, protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ru-RU.ts b/packages/localizations/src/ru-RU.ts index aabe95d1181..dd7e33ced5e 100644 --- a/packages/localizations/src/ru-RU.ts +++ b/packages/localizations/src/ru-RU.ts @@ -1665,6 +1665,11 @@ export const ruRU: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ваш текущий пароль необходимо сбросить. Подтвердите, что это вы, чтобы сохранить новый пароль.', + title: 'Требуется сброс пароля', + }, phoneCode: { formTitle: 'Верификационный код', resendButton: 'Не получили код? Отправить повторно', @@ -1843,6 +1848,9 @@ export const ruRU: LocalizationResource = { passwordPwned: { title: 'Пароль скомпрометирован', }, + passwordResetRequired: { + title: 'Требуется сброс пароля', + }, passwordUntrusted: { title: undefined, }, @@ -2207,6 +2215,7 @@ export const ruRU: LocalizationResource = { password_confirmation_attempts_remaining: 'Неверный пароль. Осталось попыток: {{remainingAttempts}}.', password_confirmation_session_ended: 'Ваш сеанс завершён, так как вы достигли лимита попыток подтверждения пароля. Ваша учётная запись заблокирована. Свяжитесь с поддержкой, чтобы разблокировать её.', + password_reset_required: 'Вам необходимо сбросить пароль, прежде чем вы сможете снова его использовать.', phone_number_exists: 'Этот номер телефона уже занят. Пожалуйста, попробуйте другой.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/sk-SK.ts b/packages/localizations/src/sk-SK.ts index 4d9a3310d26..84278533f63 100644 --- a/packages/localizations/src/sk-SK.ts +++ b/packages/localizations/src/sk-SK.ts @@ -1659,6 +1659,11 @@ export const skSK: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Vaše aktuálne heslo je potrebné obnoviť. Potvrďte svoju totožnosť, aby ste mohli uložiť nové heslo.', + title: 'Vyžaduje sa obnovenie hesla', + }, phoneCode: { formTitle: 'Overovací kód', resendButton: 'Nedostali ste kód? Znova odoslať', @@ -1836,6 +1841,9 @@ export const skSK: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: 'Vyžaduje sa obnovenie hesla', + }, passwordUntrusted: { title: undefined, }, @@ -2198,6 +2206,7 @@ export const skSK: LocalizationResource = { password_confirmation_attempts_remaining: 'Nesprávne heslo. Počet zostávajúcich pokusov: {{remainingAttempts}}.', password_confirmation_session_ended: 'Vaša relácia bola ukončená, pretože ste dosiahli limit pokusov o potvrdenie hesla. Váš účet je zamknutý. Ak ho chcete odomknúť, kontaktujte podporu.', + password_reset_required: 'Pred opätovným použitím hesla ho musíte obnoviť.', phone_number_exists: 'Toto telefónne číslo je už obsadené. Skúste prosím iné.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/sr-RS.ts b/packages/localizations/src/sr-RS.ts index 58a7b2e395a..7d6c572987a 100644 --- a/packages/localizations/src/sr-RS.ts +++ b/packages/localizations/src/sr-RS.ts @@ -1656,6 +1656,11 @@ export const srRS: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Tvoju trenutnu lozinku je potrebno resetovati. Potvrdi svoj identitet da bi se nova lozinka sačuvala.', + title: 'Potrebno je resetovati lozinku', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1833,6 +1838,9 @@ export const srRS: LocalizationResource = { passwordPwned: { title: 'Lozinka kompromitovana', }, + passwordResetRequired: { + title: 'Potrebno je resetovati lozinku', + }, passwordUntrusted: { title: undefined, }, @@ -2190,6 +2198,7 @@ export const srRS: LocalizationResource = { password_confirmation_attempts_remaining: 'Pogrešna lozinka. Preostalo pokušaja: {{remainingAttempts}}.', password_confirmation_session_ended: 'Vaša sesija je završena jer ste dostigli ograničenje pokušaja potvrde lozinke. Vaš nalog je zaključan. Obratite se podršci da biste ga otključali.', + password_reset_required: 'Moraš da resetuješ lozinku pre ponovnog korišćenja.', phone_number_exists: 'Ovaj telefonski broj je zauzet. Molimo pokušaj sa drugim.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/sv-SE.ts b/packages/localizations/src/sv-SE.ts index ab3ae0183fc..5c83eb5c424 100644 --- a/packages/localizations/src/sv-SE.ts +++ b/packages/localizations/src/sv-SE.ts @@ -1658,6 +1658,11 @@ export const svSE: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ditt nuvarande lösenord måste återställas. Bekräfta att det är du för att spara ditt nya lösenord.', + title: 'Lösenordet måste återställas', + }, phoneCode: { formTitle: 'Verifieringskod', resendButton: 'Fick du ingen kod? Skicka igen', @@ -1836,6 +1841,9 @@ export const svSE: LocalizationResource = { passwordPwned: { title: 'Lösenord är för osäkert', }, + passwordResetRequired: { + title: 'Lösenordet måste återställas', + }, passwordUntrusted: { title: undefined, }, @@ -2193,6 +2201,7 @@ export const svSE: LocalizationResource = { password_confirmation_attempts_remaining: 'Felaktigt lösenord. Du har {{remainingAttempts}} försök kvar.', password_confirmation_session_ended: 'Din session har avslutats eftersom du nådde gränsen för försök att bekräfta lösenordet. Ditt konto är låst. Kontakta supporten för att låsa upp det.', + password_reset_required: 'Du måste återställa ditt lösenord innan du kan använda det igen.', phone_number_exists: 'Detta telefonnummer är taget. Vänligen prova ett annat.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/ta-IN.ts b/packages/localizations/src/ta-IN.ts index 36f55448902..8d409f86f25 100644 --- a/packages/localizations/src/ta-IN.ts +++ b/packages/localizations/src/ta-IN.ts @@ -1672,6 +1672,11 @@ export const taIN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'உங்கள் தற்போதைய கடவுச்சொல்லை மீட்டமைக்க வேண்டும். உங்கள் புதிய கடவுச்சொல்லைச் சேமிக்க இது நீங்கள்தான் என்பதை உறுதிப்படுத்தவும்.', + title: 'கடவுச்சொல்லை மீட்டமைக்க வேண்டும்', + }, phoneCode: { formTitle: 'சரிபார்ப்புக் குறியீடு', resendButton: 'குறியீடு கிடைக்கவில்லையா? மீண்டும் அனுப்பு', @@ -1849,6 +1854,9 @@ export const taIN: LocalizationResource = { passwordPwned: { title: 'கடவுச்சொல் அபாயத்தில் உள்ளது', }, + passwordResetRequired: { + title: 'கடவுச்சொல்லை மீட்டமைக்க வேண்டும்', + }, passwordUntrusted: { title: 'கடவுச்சொல் நம்பத்தகாதது', }, @@ -2227,6 +2235,7 @@ export const taIN: LocalizationResource = { 'தவறான கடவுச்சொல். உங்களுக்கு {{remainingAttempts}} முயற்சிகள் மீதமுள்ளன.', password_confirmation_session_ended: 'கடவுச்சொல் உறுதிப்படுத்தல் முயற்சிகளின் வரம்பை அடைந்ததால் உங்கள் அமர்வு முடிந்தது. உங்கள் கணக்கு பூட்டப்பட்டுள்ளது. பூட்டைத் திறக்க ஆதரவைத் தொடர்பு கொள்ளவும்.', + password_reset_required: 'உங்கள் கடவுச்சொல்லை மீண்டும் பயன்படுத்துவதற்கு முன் அதை மீட்டமைக்க வேண்டும்.', phone_number_exists: 'இந்த தொலைபேசி எண் எடுக்கப்பட்டுள்ளது. வேறொன்றை முயற்சிக்கவும்.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/te-IN.ts b/packages/localizations/src/te-IN.ts index 95794570393..8f58379ec27 100644 --- a/packages/localizations/src/te-IN.ts +++ b/packages/localizations/src/te-IN.ts @@ -1669,6 +1669,11 @@ export const teIN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'మీ ప్రస్తుత పాస్‌వర్డ్‌ను రీసెట్ చేయాలి. మీ కొత్త పాస్‌వర్డ్‌ను సేవ్ చేయడానికి ఇది మీరేనని నిర్ధారించండి.', + title: 'పాస్‌వర్డ్ రీసెట్ అవసరం', + }, phoneCode: { formTitle: 'ధృవీకరణ కోడ్', resendButton: 'కోడ్ అందలేదా? మళ్ళీ పంపండి', @@ -1846,6 +1851,9 @@ export const teIN: LocalizationResource = { passwordPwned: { title: 'పాస్‌వర్డ్ ప్రమాదంలో ఉంది', }, + passwordResetRequired: { + title: 'పాస్‌వర్డ్ రీసెట్ అవసరం', + }, passwordUntrusted: { title: 'పాస్‌వర్డ్ విశ్వసనీయం కాదు', }, @@ -2220,6 +2228,7 @@ export const teIN: LocalizationResource = { password_confirmation_attempts_remaining: 'తప్పు పాస్‌వర్డ్. మీకు {{remainingAttempts}} ప్రయత్నాలు మిగిలి ఉన్నాయి.', password_confirmation_session_ended: 'పాస్‌వర్డ్ నిర్ధారణ ప్రయత్నాల పరిమితిని చేరుకున్నందున మీ సెషన్ ముగిసింది. మీ ఖాతా లాక్ చేయబడింది. దాన్ని అన్‌లాక్ చేయడానికి మద్దతును సంప్రదించండి.', + password_reset_required: 'మీ పాస్‌వర్డ్‌ను మళ్లీ ఉపయోగించే ముందు మీరు దాన్ని రీసెట్ చేయాలి.', phone_number_exists: 'ఈ ఫోన్ నంబర్ తీసుకోబడింది. దయచేసి మరొకదాన్ని ప్రయత్నించండి.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/th-TH.ts b/packages/localizations/src/th-TH.ts index 9d476c796bf..9248d2645c5 100644 --- a/packages/localizations/src/th-TH.ts +++ b/packages/localizations/src/th-TH.ts @@ -1658,6 +1658,10 @@ export const thTH: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'ต้องรีเซ็ตรหัสผ่านปัจจุบันของคุณ ยืนยันว่าเป็นคุณเพื่อบันทึกรหัสผ่านใหม่', + title: 'ต้องรีเซ็ตรหัสผ่าน', + }, phoneCode: { formTitle: 'รหัสยืนยัน', resendButton: 'ไม่ได้รับรหัส? ส่งใหม่', @@ -1834,6 +1838,9 @@ export const thTH: LocalizationResource = { passwordPwned: { title: 'รหัสผ่านถูกโจรกรรม', }, + passwordResetRequired: { + title: 'ต้องรีเซ็ตรหัสผ่าน', + }, passwordUntrusted: { title: undefined, }, @@ -2188,6 +2195,7 @@ export const thTH: LocalizationResource = { password_confirmation_attempts_remaining: 'รหัสผ่านไม่ถูกต้อง คุณเหลือโอกาสอีก {{remainingAttempts}} ครั้ง', password_confirmation_session_ended: 'เซสชันของคุณสิ้นสุดลงเนื่องจากคุณพยายามยืนยันรหัสผ่านครบตามจำนวนครั้งที่อนุญาตแล้ว บัญชีของคุณถูกล็อก โปรดติดต่อฝ่ายสนับสนุนเพื่อปลดล็อก', + password_reset_required: 'คุณต้องรีเซ็ตรหัสผ่านก่อนจึงจะใช้งานได้อีกครั้ง', phone_number_exists: undefined, protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/tr-TR.ts b/packages/localizations/src/tr-TR.ts index c60d7b8cc5f..ea83db06b34 100644 --- a/packages/localizations/src/tr-TR.ts +++ b/packages/localizations/src/tr-TR.ts @@ -1657,6 +1657,11 @@ export const trTR: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Mevcut şifrenizin sıfırlanması gerekiyor. Yeni şifrenizi kaydetmek için kimliğinizi doğrulayın.', + title: 'Şifre sıfırlama gerekli', + }, phoneCode: { formTitle: 'Telefon Kodu ile Doğrulama', resendButton: 'Telefon kodunu tekrar gönder', @@ -1835,6 +1840,9 @@ export const trTR: LocalizationResource = { passwordPwned: { title: 'Şifre ele geçirildi', }, + passwordResetRequired: { + title: 'Şifre sıfırlama gerekli', + }, passwordUntrusted: { title: undefined, }, @@ -2194,6 +2202,7 @@ export const trTR: LocalizationResource = { password_confirmation_attempts_remaining: 'Hatalı şifre. {{remainingAttempts}} deneme hakkınız kaldı.', password_confirmation_session_ended: 'Şifre doğrulama deneme sınırına ulaştığınız için oturumunuz sona erdi. Hesabınız kilitlendi. Kilidi açmak için destek ekibiyle iletişime geçin.', + password_reset_required: 'Şifrenizi tekrar kullanabilmek için önce sıfırlamanız gerekiyor.', phone_number_exists: 'Bu telefon numarası zaten kullanılıyor. Lütfen başka bir numara deneyin.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/uk-UA.ts b/packages/localizations/src/uk-UA.ts index 8c0266085b1..c93023e4f27 100644 --- a/packages/localizations/src/uk-UA.ts +++ b/packages/localizations/src/uk-UA.ts @@ -1656,6 +1656,11 @@ export const ukUA: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: + 'Ваш поточний пароль потрібно скинути. Підтвердьте, що це ви, щоб зберегти новий пароль.', + title: 'Потрібно скинути пароль', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1833,6 +1838,9 @@ export const ukUA: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: 'Потрібно скинути пароль', + }, passwordUntrusted: { title: undefined, }, @@ -2189,6 +2197,7 @@ export const ukUA: LocalizationResource = { password_confirmation_attempts_remaining: 'Неправильний пароль. Залишилося спроб: {{remainingAttempts}}.', password_confirmation_session_ended: 'Ваш сеанс завершено, оскільки ви досягли ліміту спроб підтвердження пароля. Ваш обліковий запис заблоковано. Зверніться до служби підтримки, щоб розблокувати його.', + password_reset_required: 'Вам потрібно скинути пароль, перш ніж ви зможете використовувати його знову.', phone_number_exists: 'Цей номер телефону вже використовується. Спробуйте інший.', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/vi-VN.ts b/packages/localizations/src/vi-VN.ts index dcef898224c..1b32b228681 100644 --- a/packages/localizations/src/vi-VN.ts +++ b/packages/localizations/src/vi-VN.ts @@ -1666,6 +1666,10 @@ export const viVN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: 'Mật khẩu hiện tại của bạn cần được đặt lại. Xác nhận đó là bạn để lưu mật khẩu mới.', + title: 'Cần đặt lại mật khẩu', + }, phoneCode: { formTitle: 'Mã xác minh', resendButton: 'Không nhận được mã? Gửi lại', @@ -1843,6 +1847,9 @@ export const viVN: LocalizationResource = { passwordPwned: { title: 'Mật khẩu bị rò rỉ', }, + passwordResetRequired: { + title: 'Cần đặt lại mật khẩu', + }, passwordUntrusted: { title: 'Mật khẩu không đáng tin cậy', }, @@ -2211,6 +2218,7 @@ export const viVN: LocalizationResource = { password_confirmation_attempts_remaining: 'Mật khẩu không đúng. Bạn còn {{remainingAttempts}} lần thử.', password_confirmation_session_ended: 'Phiên của bạn đã kết thúc vì bạn đã đạt đến giới hạn số lần xác nhận mật khẩu. Tài khoản của bạn đã bị khóa. Vui lòng liên hệ hỗ trợ để mở khóa.', + password_reset_required: 'Bạn cần đặt lại mật khẩu trước khi có thể sử dụng lại.', phone_number_exists: undefined, protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/zh-CN.ts b/packages/localizations/src/zh-CN.ts index 7d73b3ff203..19af8ac4089 100644 --- a/packages/localizations/src/zh-CN.ts +++ b/packages/localizations/src/zh-CN.ts @@ -1647,6 +1647,10 @@ export const zhCN: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: '您当前的密码需要重置。请确认是您本人,以保存新密码。', + title: '需要重置密码', + }, phoneCode: { formTitle: undefined, resendButton: undefined, @@ -1821,6 +1825,9 @@ export const zhCN: LocalizationResource = { passwordPwned: { title: undefined, }, + passwordResetRequired: { + title: '需要重置密码', + }, passwordUntrusted: { title: undefined, }, @@ -2171,6 +2178,7 @@ export const zhCN: LocalizationResource = { password_confirmation_attempts_remaining: '密码错误。您还有 {{remainingAttempts}} 次尝试机会。', password_confirmation_session_ended: '由于密码确认尝试次数已达上限,您的会话已结束。您的账户已被锁定。请联系支持团队解锁。', + password_reset_required: '您需要先重置密码,然后才能再次使用。', phone_number_exists: '该电话号码已被使用,请尝试其他号码。', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/localizations/src/zh-TW.ts b/packages/localizations/src/zh-TW.ts index 2e7a2898025..db6ad2740eb 100644 --- a/packages/localizations/src/zh-TW.ts +++ b/packages/localizations/src/zh-TW.ts @@ -1650,6 +1650,10 @@ export const zhTW: LocalizationResource = { subtitle__saveNewPassword: undefined, title: undefined, }, + passwordResetRequired: { + subtitle__saveNewPassword: '您目前的密碼需要重設。請確認是您本人,以儲存新密碼。', + title: '需要重設密碼', + }, phoneCode: { formTitle: '驗證碼', resendButton: '沒收到代碼?重新傳送', @@ -1824,6 +1828,9 @@ export const zhTW: LocalizationResource = { passwordPwned: { title: '密碼可能已遭外洩', }, + passwordResetRequired: { + title: '需要重設密碼', + }, passwordUntrusted: { title: '密碼不受信任', }, @@ -2176,6 +2183,7 @@ export const zhTW: LocalizationResource = { password_confirmation_attempts_remaining: '密碼錯誤。您還有 {{remainingAttempts}} 次嘗試機會。', password_confirmation_session_ended: '由於密碼確認嘗試次數已達上限,您的工作階段已結束。您的帳戶已被鎖定。請聯絡支援以解除鎖定。', + password_reset_required: '您需要先重設密碼,才能再次使用。', phone_number_exists: '此電話號碼已被使用,請嘗試其他號碼。', protect_check_aborted: undefined, protect_check_already_resolved: undefined, diff --git a/packages/shared/src/error.ts b/packages/shared/src/error.ts index 37eb5e41bb7..0434bd99d08 100644 --- a/packages/shared/src/error.ts +++ b/packages/shared/src/error.ts @@ -26,6 +26,7 @@ export { isNetworkError, isPasswordPwnedError, isPasswordCompromisedError, + isPasswordResetRequiredError, isReverificationCancelledError, isUnauthenticatedError, isUnauthorizedError, diff --git a/packages/shared/src/errors/helpers.ts b/packages/shared/src/errors/helpers.ts index 1aeb4c698d7..e8ea3f8ee71 100644 --- a/packages/shared/src/errors/helpers.ts +++ b/packages/shared/src/errors/helpers.ts @@ -130,6 +130,15 @@ export function isPasswordCompromisedError(err: any) { return isClerkAPIResponseError(err) && err.errors?.[0]?.code === 'form_password_compromised'; } +/** + * Checks if the provided error is a clerk api response error indicating the password must be reset before it can be used. + * + * @internal + */ +export function isPasswordResetRequiredError(err: any) { + return isClerkAPIResponseError(err) && err.errors?.[0]?.code === 'password_reset_required'; +} + /** * Checks if the provided error is an EmailLinkError. */ diff --git a/packages/shared/src/internal/clerk-js/constants.ts b/packages/shared/src/internal/clerk-js/constants.ts index e58e42c8bd3..900d5412fce 100644 --- a/packages/shared/src/internal/clerk-js/constants.ts +++ b/packages/shared/src/internal/clerk-js/constants.ts @@ -25,6 +25,7 @@ export const ERROR_CODES = { FORM_IDENTIFIER_NOT_FOUND: 'form_identifier_not_found', FORM_PASSWORD_INCORRECT: 'form_password_incorrect', FORM_PASSWORD_PWNED: 'form_password_pwned', + PASSWORD_RESET_REQUIRED: 'password_reset_required', INVALID_STRATEGY_FOR_USER: 'strategy_for_user_invalid', NOT_ALLOWED_TO_SIGN_UP: 'not_allowed_to_sign_up', OAUTH_ACCESS_DENIED: 'oauth_access_denied', diff --git a/packages/shared/src/types/localization.ts b/packages/shared/src/types/localization.ts index 24e10fa7eac..70407c93a7e 100644 --- a/packages/shared/src/types/localization.ts +++ b/packages/shared/src/types/localization.ts @@ -473,6 +473,9 @@ export type __internal_LocalizationResource = { passwordCompromised: { title: LocalizationValue; }; + passwordResetRequired: { + title: LocalizationValue; + }; passkey: { title: LocalizationValue; subtitle: LocalizationValue; @@ -721,6 +724,10 @@ export type __internal_LocalizationResource = { title: LocalizationValue; subtitle__saveNewPassword: LocalizationValue; }; + passwordResetRequired: { + title: LocalizationValue; + subtitle__saveNewPassword: LocalizationValue; + }; resetPassword: { title: LocalizationValue; formButtonPrimary: LocalizationValue; @@ -2576,6 +2583,7 @@ type UnstableErrors = WithParamName<{ /** @deprecated Use `form_password_compromised__sign_in` instead */ form_password_untrusted__sign_in: LocalizationValue; form_password_compromised__sign_in: LocalizationValue; + password_reset_required: LocalizationValue; form_username_invalid_length: LocalizationValue<'min_length' | 'max_length'>; form_username_needs_non_number_char: LocalizationValue; form_username_invalid_character: LocalizationValue; diff --git a/packages/ui/src/components/SignIn/AlternativeMethods.tsx b/packages/ui/src/components/SignIn/AlternativeMethods.tsx index 331f85afd49..0b997798101 100644 --- a/packages/ui/src/components/SignIn/AlternativeMethods.tsx +++ b/packages/ui/src/components/SignIn/AlternativeMethods.tsx @@ -18,7 +18,7 @@ import { SignInSocialButtons } from './SignInSocialButtons'; import { useResetPasswordFactor } from './useResetPasswordFactor'; import { withHavingTrouble } from './withHavingTrouble'; -export type AlternativeMethodsMode = 'forgot' | 'pwned' | 'passwordCompromised' | 'default'; +export type AlternativeMethodsMode = 'forgot' | 'pwned' | 'passwordCompromised' | 'passwordResetRequired' | 'default'; export type AlternativeMethodsProps = { onBackLinkClick: React.MouseEventHandler | undefined; @@ -187,6 +187,8 @@ function determineFlowPart(mode: AlternativeMethodsMode) { return 'passwordPwnedMethods'; case 'passwordCompromised': return 'passwordCompromisedMethods'; + case 'passwordResetRequired': + return 'passwordResetRequiredMethods'; default: return 'alternativeMethods'; } @@ -200,6 +202,8 @@ function determineTitle(mode: AlternativeMethodsMode): LocalizationKey { return localizationKeys('signIn.passwordPwned.title'); case 'passwordCompromised': return localizationKeys('signIn.passwordCompromised.title'); + case 'passwordResetRequired': + return localizationKeys('signIn.passwordResetRequired.title'); default: return localizationKeys('signIn.alternativeMethods.title'); } @@ -209,6 +213,7 @@ function determineIsReset(mode: AlternativeMethodsMode): boolean { switch (mode) { case 'forgot': case 'pwned': + case 'passwordResetRequired': return true; case 'passwordCompromised': return false; diff --git a/packages/ui/src/components/SignIn/SignInFactorOne.tsx b/packages/ui/src/components/SignIn/SignInFactorOne.tsx index 5f0334b9476..0f4938d5009 100644 --- a/packages/ui/src/components/SignIn/SignInFactorOne.tsx +++ b/packages/ui/src/components/SignIn/SignInFactorOne.tsx @@ -1,3 +1,4 @@ +import { ERROR_CODES } from '@clerk/shared/internal/clerk-js/constants'; import { useClerk } from '@clerk/shared/react'; import type { SignInFactor } from '@clerk/shared/types'; import React from 'react'; @@ -22,7 +23,7 @@ import { SignInFactorOneEnterpriseConnections } from './SignInFactorOneEnterpris import { SignInFactorOneForgotPasswordCard } from './SignInFactorOneForgotPasswordCard'; import { SignInFactorOnePasskey } from './SignInFactorOnePasskey'; import type { PasswordErrorCode } from './SignInFactorOnePasswordCard'; -import { SignInFactorOnePasswordCard } from './SignInFactorOnePasswordCard'; +import { passwordErrorModes, SignInFactorOnePasswordCard } from './SignInFactorOnePasswordCard'; import { SignInFactorOnePhoneCodeCard } from './SignInFactorOnePhoneCodeCard'; import { SignInFactorOneSSOBypass } from './SignInFactorOneSSOBypass'; import { useResetPasswordFactor } from './useResetPasswordFactor'; @@ -53,15 +54,7 @@ function determineAlternativeMethodsMode( return 'default'; } - if (passwordErrorCode === 'pwned') { - return 'pwned'; - } - - if (passwordErrorCode === 'compromised') { - return 'passwordCompromised'; - } - - return 'forgot'; + return passwordErrorCode ? passwordErrorModes[passwordErrorCode] : 'forgot'; } function removeSignInResetPasswordIntentParam(): void { @@ -86,16 +79,17 @@ function SignInFactorOneInternal(): JSX.Element { const card = useCardState(); const { supportedFirstFactors, firstFactorVerification } = useCoreSignIn(); + // The first step hands over this error when a password it submitted needs a reset. + const passwordResetRequiredHandedOver = + typeof card.rawError === 'object' && card.rawError.code === ERROR_CODES.PASSWORD_RESET_REQUIRED; + const [{ currentFactor, prevCurrentFactor }, setFactor] = React.useState<{ currentFactor: SignInFactor | undefined | null; prevCurrentFactor: SignInFactor | undefined | null; }>(() => { - const factor = determineStartingSignInFactor( - availableFactors, - signIn.identifier, - preferredSignInStrategy, - webAuthnSupported, - ); + const factor = + (passwordResetRequiredHandedOver && availableFactors?.find(f => f.strategy === 'password')) || + determineStartingSignInFactor(availableFactors, signIn.identifier, preferredSignInStrategy, webAuthnSupported); if ( factor?.strategy === 'phone_code' && !!firstFactorVerification.channel && @@ -132,11 +126,13 @@ function SignInFactorOneInternal(): JSX.Element { return defaultShow || (resetPasswordIntent && !resetPasswordFactor); }); - const [showForgotPasswordStrategies, setShowForgotPasswordStrategies] = React.useState( - () => resetPasswordIntent && !!resetPasswordFactor, + const [passwordErrorCode, setPasswordErrorCode] = React.useState(() => + passwordResetRequiredHandedOver ? 'resetRequired' : null, ); - const [passwordErrorCode, setPasswordErrorCode] = React.useState(null); + const [showForgotPasswordStrategies, setShowForgotPasswordStrategies] = React.useState( + () => (resetPasswordIntent && !!resetPasswordFactor) || !!passwordErrorCode, + ); React.useEffect(() => { if (__internal_setActiveInProgress) { diff --git a/packages/ui/src/components/SignIn/SignInFactorOnePasswordCard.tsx b/packages/ui/src/components/SignIn/SignInFactorOnePasswordCard.tsx index a616aebf9d5..b05875f8ee2 100644 --- a/packages/ui/src/components/SignIn/SignInFactorOnePasswordCard.tsx +++ b/packages/ui/src/components/SignIn/SignInFactorOnePasswordCard.tsx @@ -1,4 +1,9 @@ -import { isPasswordCompromisedError, isPasswordPwnedError, isUserLockedError } from '@clerk/shared/error'; +import { + isPasswordCompromisedError, + isPasswordPwnedError, + isPasswordResetRequiredError, + isUserLockedError, +} from '@clerk/shared/error'; import { clerkInvalidFAPIResponse } from '@clerk/shared/internal/clerk-js/errors'; import { useClerk } from '@clerk/shared/react'; import React from 'react'; @@ -19,7 +24,13 @@ import { navigateOnSignInProtectGate } from './handleProtectCheck'; import { HavingTrouble } from './HavingTrouble'; import { useResetPasswordFactor } from './useResetPasswordFactor'; -export type PasswordErrorCode = 'compromised' | 'pwned'; +export type PasswordErrorCode = 'compromised' | 'pwned' | 'resetRequired'; + +export const passwordErrorModes = { + pwned: 'pwned', + compromised: 'passwordCompromised', + resetRequired: 'passwordResetRequired', +} as const satisfies Record; type SignInFactorOnePasswordProps = { onForgotPasswordMethodClick: React.MouseEventHandler | undefined; @@ -112,6 +123,12 @@ export const SignInFactorOnePasswordCard = (props: SignInFactorOnePasswordProps) onPasswordError('compromised'); return; } + + if (isPasswordResetRequiredError(err)) { + card.setError(err.errors[0]); + onPasswordError('resetRequired'); + return; + } } handleError(err, [passwordControl], card.setError); diff --git a/packages/ui/src/components/SignIn/SignInStart.tsx b/packages/ui/src/components/SignIn/SignInStart.tsx index 322d98027cd..74e9b42c683 100644 --- a/packages/ui/src/components/SignIn/SignInStart.tsx +++ b/packages/ui/src/components/SignIn/SignInStart.tsx @@ -23,7 +23,7 @@ import { isWebAuthnAutofillSupported } from '@clerk/shared/webauthn'; import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import { Card } from '@/ui/elements/Card'; -import { useCardState, withCardStateProvider } from '@/ui/elements/contexts'; +import { showErrorOnNextCard, useCardState, withCardStateProvider } from '@/ui/elements/contexts'; import { Form } from '@/ui/elements/Form'; import { Header } from '@/ui/elements/Header'; import { LoadingCard } from '@/ui/elements/LoadingCard'; @@ -278,7 +278,7 @@ function SignInStartInternal(): JSX.Element { const signInWithFields = async ( fields: Array>, - options?: { resetPasswordIntent?: boolean }, + options?: { resetPasswordIntent?: boolean; passwordResetRequiredError?: ClerkAPIError }, ) => { // If the user has already selected an alternative phone code provider, we use that. const preferredAlternativePhoneChannel = @@ -338,6 +338,10 @@ function SignInStartInternal(): JSX.Element { searchParams: new URLSearchParams({ [SIGN_IN_RESET_PASSWORD_INTENT_PARAM]: 'true' }), }); } + if (options?.passwordResetRequiredError) { + // Factor one opens on the password reset screen when it receives this error. + showErrorOnNextCard(options.passwordResetRequiredError); + } return navigate('factor-one'); } @@ -396,7 +400,8 @@ function SignInStartInternal(): JSX.Element { (e: ClerkAPIError) => e.code === ERROR_CODES.INVALID_STRATEGY_FOR_USER || e.code === ERROR_CODES.FORM_PASSWORD_INCORRECT || - e.code === ERROR_CODES.FORM_PASSWORD_PWNED, + e.code === ERROR_CODES.FORM_PASSWORD_PWNED || + e.code === ERROR_CODES.PASSWORD_RESET_REQUIRED, ); const sessionAlreadyExistsError: ClerkAPIError = e.errors.find( @@ -411,7 +416,10 @@ function SignInStartInternal(): JSX.Element { ); if (instantPasswordError) { - await signInWithFields([identifierField]); + await signInWithFields([identifierField], { + passwordResetRequiredError: + instantPasswordError.code === ERROR_CODES.PASSWORD_RESET_REQUIRED ? instantPasswordError : undefined, + }); } else if (sessionAlreadyExistsError) { await clerk.setActive({ session: clerk.client.lastActiveSessionId, diff --git a/packages/ui/src/components/SignIn/__tests__/SignInFactorOne.test.tsx b/packages/ui/src/components/SignIn/__tests__/SignInFactorOne.test.tsx index c829f02ca86..95a2fefdd45 100644 --- a/packages/ui/src/components/SignIn/__tests__/SignInFactorOne.test.tsx +++ b/packages/ui/src/components/SignIn/__tests__/SignInFactorOne.test.tsx @@ -450,6 +450,92 @@ describe('SignInFactorOne', () => { await userEvent.click(screen.getByText('Email code to hello@clerk.com')); await screen.findByText('Check your email'); }); + + it('Prompts the user to reset their password if a password reset is required', async () => { + const { wrapper, fixtures } = await createFixtures(f => { + f.withEmailAddress(); + f.withPassword(); + f.withPreferredSignInStrategy({ strategy: 'password' }); + f.startSignInWithEmailAddress({ + supportEmailCode: true, + supportPassword: true, + supportResetPassword: true, + }); + }); + fixtures.signIn.prepareFirstFactor.mockReturnValueOnce(Promise.resolve({} as SignInResource)); + + const errJSON = { + code: 'password_reset_required', + long_message: + 'This account requires a password reset before sign-in can continue. Please reset your password or contact support.', + message: 'password reset required', + }; + + fixtures.signIn.attemptFirstFactor.mockRejectedValueOnce( + new ClerkAPIResponseError('Error', { + data: [errJSON], + status: 422, + }), + ); + const { userEvent } = render(, { wrapper }); + await userEvent.type(screen.getByLabelText('Password'), '123456'); + await userEvent.click(screen.getByText('Continue')); + + await screen.findByText('Password reset required'); + screen.getByText('You need to reset your password before you can use it again.'); + screen.getByText('Or, sign in with another method'); + screen.getByText('Email code to hello@clerk.com'); + expect(screen.queryByText('Back')).not.toBeInTheDocument(); + + await userEvent.click(screen.getByText('Reset your password')); + await screen.findByText('First, enter the code sent to your email address'); + }); + + it('Opens the password reset screen when the first step reports that a password reset is required', async () => { + const { wrapper, fixtures } = await createFixtures(f => { + f.withEmailAddress(); + f.withPassword(); + f.withPreferredSignInStrategy({ strategy: 'otp' }); + f.startSignInWithEmailAddress({ + supportEmailCode: true, + supportPassword: true, + supportResetPassword: true, + }); + }); + fixtures.signIn.prepareFirstFactor.mockReturnValueOnce(Promise.resolve({} as SignInResource)); + + const originalClerk = window.Clerk; + let errorFromFirstStep: unknown = parseError({ + code: 'password_reset_required', + long_message: + 'This account requires a password reset before sign-in can continue. Please reset your password or contact support.', + message: 'password reset required', + }); + window.Clerk = { + get __internal_last_error() { + const value = errorFromFirstStep; + errorFromFirstStep = null; + return value; + }, + } as typeof window.Clerk; + + try { + const { userEvent } = render(, { wrapper }); + + await screen.findByText('Password reset required'); + screen.getByText('You need to reset your password before you can use it again.'); + screen.getByText('Email code to hello@clerk.com'); + expect(screen.queryByText('Sign in with your password')).not.toBeInTheDocument(); + expect(screen.queryByLabelText('Password')).not.toBeInTheDocument(); + expect(screen.queryByText('Back')).not.toBeInTheDocument(); + expect(fixtures.signIn.attemptFirstFactor).not.toHaveBeenCalled(); + + await userEvent.click(screen.getByText('Reset your password')); + await screen.findByText('First, enter the code sent to your email address'); + } finally { + window.Clerk = originalClerk; + } + }); }); describe('Forgot Password', () => { diff --git a/packages/ui/src/components/SignIn/__tests__/SignInStart.test.tsx b/packages/ui/src/components/SignIn/__tests__/SignInStart.test.tsx index 6cabb94523d..618d1314318 100644 --- a/packages/ui/src/components/SignIn/__tests__/SignInStart.test.tsx +++ b/packages/ui/src/components/SignIn/__tests__/SignInStart.test.tsx @@ -790,7 +790,12 @@ describe('SignInStart', () => { }); describe('Submitting form via instant password autofill', () => { - const ERROR_CODES = ['strategy_for_user_invalid', 'form_password_incorrect', 'form_password_pwned']; + const ERROR_CODES = [ + 'strategy_for_user_invalid', + 'form_password_incorrect', + 'form_password_pwned', + 'password_reset_required', + ]; ERROR_CODES.forEach(code => { it(`calls sign in with identifier again with only the email if the api respondes with the error ${code}`, async () => { const { wrapper, fixtures } = await createFixtures(f => { @@ -840,6 +845,51 @@ describe('SignInStart', () => { }); }); + describe('after the identifier-only retry', () => { + const originalClerk = window.Clerk; + + afterEach(() => { + window.Clerk = originalClerk; + }); + + const submitWithInstantPassword = async (code: string) => { + const { wrapper, fixtures } = await createFixtures(f => { + f.withEmailAddress(); + f.withPassword({ required: true }); + }); + fixtures.signIn.create + .mockRejectedValueOnce( + new ClerkAPIResponseError('Error', { + data: [{ code, long_message: '', message: '', meta: { param_name: 'password' } }], + status: 422, + }), + ) + .mockReturnValueOnce(Promise.resolve({ status: 'needs_first_factor' } as SignInResource)); + window.Clerk = {} as typeof window.Clerk; + + const { userEvent, container } = render(, { wrapper }); + await userEvent.type(screen.getByLabelText(/email address/i), 'hello@clerk.com'); + fireEvent.change(container.querySelector('#password-field') as Element, { + target: { value: 'some-password' }, + }); + fireEvent.submit(container.querySelector('form') as Element); + + await waitFor(() => expect(fixtures.router.navigate).toHaveBeenCalledWith('factor-one')); + }; + + it('passes a required password reset on to the next step', async () => { + await submitWithInstantPassword('password_reset_required'); + + expect(window.Clerk?.__internal_last_error).toMatchObject({ code: 'password_reset_required' }); + }); + + it('passes no error on to the next step for a breached password', async () => { + await submitWithInstantPassword('form_password_pwned'); + + expect(window.Clerk?.__internal_last_error).toBeUndefined(); + }); + }); + it('does not attempt password first factor on Enterprise SSO instances when user only supports email_code', async () => { const { wrapper, fixtures } = await createFixtures(f => { f.withEmailAddress(); diff --git a/packages/ui/src/components/UserVerification/AlternativeMethods.tsx b/packages/ui/src/components/UserVerification/AlternativeMethods.tsx index b85d46c175f..7ed6e406b76 100644 --- a/packages/ui/src/components/UserVerification/AlternativeMethods.tsx +++ b/packages/ui/src/components/UserVerification/AlternativeMethods.tsx @@ -17,10 +17,10 @@ import { useUserVerificationSession } from './useUserVerificationSession'; import { withHavingTrouble } from './withHavingTrouble'; /** - * 'pwned' and 'passwordCompromised' follow a rejected password: the list leads - * with resetting it. + * Every mode but 'default' follows a rejected password: the list leads with + * resetting it. */ -export type AlternativeMethodsMode = 'default' | 'pwned' | 'passwordCompromised'; +export type AlternativeMethodsMode = 'default' | 'pwned' | 'passwordCompromised' | 'passwordResetRequired'; export type AlternativeMethodsProps = { onBackLinkClick: React.MouseEventHandler | undefined; @@ -74,13 +74,7 @@ const AlternativeMethodsList = (props: AlternativeMethodListProps) => { )} {mode !== 'default' && reset?.hasNewPassword && ( - + )} {card.error} @@ -211,6 +205,8 @@ function determineFlowPart(mode: AlternativeMethodsMode) { return 'passwordPwnedMethods'; case 'passwordCompromised': return 'passwordCompromisedMethods'; + case 'passwordResetRequired': + return 'passwordResetRequiredMethods'; default: return 'alternativeMethods'; } @@ -222,11 +218,24 @@ function determineTitle(mode: AlternativeMethodsMode): LocalizationKey { return localizationKeys('reverification.passwordPwned.title'); case 'passwordCompromised': return localizationKeys('reverification.passwordCompromised.title'); + case 'passwordResetRequired': + return localizationKeys('reverification.passwordResetRequired.title'); default: return localizationKeys('reverification.alternativeMethods.title'); } } +function determineSaveNewPasswordSubtitle(mode: Exclude): LocalizationKey { + switch (mode) { + case 'pwned': + return localizationKeys('reverification.passwordPwned.subtitle__saveNewPassword'); + case 'passwordCompromised': + return localizationKeys('reverification.passwordCompromised.subtitle__saveNewPassword'); + case 'passwordResetRequired': + return localizationKeys('reverification.passwordResetRequired.subtitle__saveNewPassword'); + } +} + function sendsCodeToSameIdentification(factor: SessionVerificationFirstFactor, resetFactor: ResetPasswordCodeFactor) { if (factor.strategy === 'email_code' && resetFactor.strategy === 'reset_password_email_code') { return factor.emailAddressId === resetFactor.emailAddressId; diff --git a/packages/ui/src/components/UserVerification/UserVerificationFactorOne.tsx b/packages/ui/src/components/UserVerification/UserVerificationFactorOne.tsx index a18c1687172..61be4ec45c4 100644 --- a/packages/ui/src/components/UserVerification/UserVerificationFactorOne.tsx +++ b/packages/ui/src/components/UserVerification/UserVerificationFactorOne.tsx @@ -10,6 +10,7 @@ import { useIsWebAuthnSupported } from '../../hooks'; import { localizationKeys } from '../../localization'; import { useRouter } from '../../router'; import type { PasswordErrorCode } from '../SignIn/SignInFactorOnePasswordCard'; +import { passwordErrorModes } from '../SignIn/SignInFactorOnePasswordCard'; import { determineStartingSignInFactor, factorHasLocalStrategy, isResetPasswordStrategy } from '../SignIn/utils'; import { AlternativeMethods } from './AlternativeMethods'; import { useReverificationAlternativeStrategies } from './useReverificationAlternativeStrategies'; @@ -43,8 +44,8 @@ const SUPPORTED_STRATEGIES: SessionVerificationFirstFactor['strategy'][] = [ 'passkey', ] as const; -// Resetting a breached or compromised password: choose to reset, set the new -// password, then enter the code, which is sent together with the new password. +// Resetting a rejected password: choose to reset, set the new password, then +// enter the code, which is sent together with the new password. type ResetPasswordStep = | { step: 'none' } | { step: 'methods'; reason: PasswordErrorCode } @@ -142,7 +143,7 @@ export function UserVerificationFactorOneInternal(): JSX.Element | null { // As in sign-in, no way back: re-entering the rejected password can't succeed. return ( void; }; @@ -64,6 +64,12 @@ export function UserVerificationFactorOnePasswordCard(props: UserVerificationFac onPasswordError('compromised'); return; } + + if (isPasswordResetRequiredError(err)) { + card.setError(err.errors[0]); + onPasswordError('resetRequired'); + return; + } } handleError(err, [passwordControl], card.setError); diff --git a/packages/ui/src/components/UserVerification/__tests__/UVFactorOne.test.tsx b/packages/ui/src/components/UserVerification/__tests__/UVFactorOne.test.tsx index a2c405c56c6..d35819ec498 100644 --- a/packages/ui/src/components/UserVerification/__tests__/UVFactorOne.test.tsx +++ b/packages/ui/src/components/UserVerification/__tests__/UVFactorOne.test.tsx @@ -560,6 +560,71 @@ describe('UserVerificationFactorOne', () => { screen.getByText('Password compromised'); }); + describe('when the password must be reset', () => { + const resetRequiredError = () => + new ClerkAPIResponseError('Error', { + data: [ + { + code: 'password_reset_required', + message: 'password reset required', + long_message: + 'This account requires a password reset before sign-in can continue. Please reset your password or contact support.', + }, + ], + status: 422, + }); + + const submitPassword = async ( + supportedFirstFactors: unknown[], + resetPassword?: UserVerificationResetPassword, + ) => { + const { wrapper, fixtures, props } = await createFixtures(f => { + f.withUser({ username: 'clerkuser' }); + }); + props.setProps({ resetPassword } as any); + fixtures.session?.startVerification.mockResolvedValue({ + status: 'needs_first_factor', + supportedFirstFactors, + }); + fixtures.session?.prepareFirstFactorVerification.mockResolvedValue({}); + fixtures.session?.attemptFirstFactorVerification.mockRejectedValueOnce(resetRequiredError()); + + const utils = render(, { wrapper }); + await waitFor(() => utils.getByText('Verification required')); + await utils.userEvent.type(utils.getByLabelText(/^password/i), 'current-password'); + await utils.userEvent.click(utils.getByText('Continue')); + return { ...utils, fixtures }; + }; + + it('offers the reset and explains why', async () => { + await submitPassword([{ strategy: 'password' }, resetFactor]); + + await screen.findByText('Reset your password'); + screen.getByText('Password reset required'); + screen.getByText('You need to reset your password before you can use it again.'); + }); + + it('explains that the chosen password will be saved when the caller already has one', async () => { + await submitPassword([{ strategy: 'password' }, resetFactor], { + password: 'from-the-form-123', + signOutOfOtherSessions: false, + }); + + await screen.findByText("Your current password needs to be reset. Confirm it's you to save your new password."); + screen.getByText('Password reset required'); + screen.getByText('Email code to xxx@hello.com'); + }); + + it('shows the message on the password card when no reset is offered', async () => { + const { fixtures } = await submitPassword([{ strategy: 'password' }]); + + await waitFor(() => expect(fixtures.session?.attemptFirstFactorVerification).toHaveBeenCalledOnce()); + await screen.findByText('You need to reset your password before you can use it again.'); + expect(screen.queryByText('Reset your password')).not.toBeInTheDocument(); + screen.getByText('Verification required'); + }); + }); + it('shows the error on the password card when no reset is offered', async () => { const { wrapper, fixtures } = await createFixtures(f => { f.withUser({ username: 'clerkuser' }); diff --git a/packages/ui/src/elements/contexts/index.tsx b/packages/ui/src/elements/contexts/index.tsx index 6f3e4ff5a20..02badc1305d 100644 --- a/packages/ui/src/elements/contexts/index.tsx +++ b/packages/ui/src/elements/contexts/index.tsx @@ -44,6 +44,15 @@ export const CardStateProvider = (props: React.PropsWithChildren) => { return {props.children}; }; +/** + * Shows `error` on the next card that mounts, such as the card a navigation leads to. + */ +export const showErrorOnNextCard = (error: ClerkAPIError) => { + if (window.Clerk) { + window.Clerk.__internal_last_error = error; + } +}; + export const useCardState = () => { const { state, setState } = _useCardState(); const { translateError } = useLocalizations(); @@ -133,6 +142,7 @@ export type FlowMetadata = { | 'forgotPasswordMethods' | 'passwordPwnedMethods' | 'passwordCompromisedMethods' + | 'passwordResetRequiredMethods' | 'havingTrouble' | 'ssoCallback' | 'popupCallback'