Skip to content

Commit b815047

Browse files
dmoernerclaude
andauthored
fix(ui): render a message for password errors the UI does not map (#9453)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e4302b7 commit b815047

53 files changed

Lines changed: 137 additions & 4 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/great-pots-tickle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/shared': patch
4+
'@clerk/ui': patch
5+
---
6+
7+
Display a proper message when a password is rejected for matching one of the account's identifiers. Previously this error rendered as the incomplete sentence "Your password must contain ." on sign-up, reset password, and the user profile password form. The new message is available under the `unstable__errors.form_password_matches_identifier` localization key, and any password error the UI does not recognize now falls back to the message returned by the API instead of an empty sentence.

packages/localizations/src/ar-SA.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,7 @@ export const arSA: LocalizationResource = {
17461746
form_password_compromised__sign_in: undefined,
17471747
form_password_incorrect: undefined,
17481748
form_password_length_too_short: undefined,
1749+
form_password_matches_identifier: undefined,
17491750
form_password_not_strong_enough: 'كلمة المرور ليست قوية',
17501751
form_password_or_identifier_incorrect:
17511752
'كلمة المرور أو عنوان البريد الإلكتروني غير صحيح. حاول مرة أخرى أو استخدم طريقة أخرى.',

packages/localizations/src/be-BY.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,7 @@ export const beBY: LocalizationResource = {
17571757
form_password_compromised__sign_in: undefined,
17581758
form_password_incorrect: 'Невірны пароль.',
17591759
form_password_length_too_short: 'Пароль занадта кароткі.',
1760+
form_password_matches_identifier: undefined,
17601761
form_password_not_strong_enough: 'Ваш пароль недастаткова надзейны.',
17611762
form_password_or_identifier_incorrect:
17621763
'Пароль або адрас электроннай пошты няправільны. Паспрабуйце яшчэ раз або выкарыстоўвайце іншы метад.',

packages/localizations/src/bg-BG.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,7 @@ export const bgBG: LocalizationResource = {
17501750
form_password_compromised__sign_in: undefined,
17511751
form_password_incorrect: 'Невалидна парола. Моля, опитайте отново.',
17521752
form_password_length_too_short: 'Паролата е твърде кратка. Моля, въведете поне 8 символа.',
1753+
form_password_matches_identifier: undefined,
17531754
form_password_not_strong_enough:
17541755
'Паролата трябва да съдържа поне една главна буква, една цифра и един специален символ.',
17551756
form_password_or_identifier_incorrect:

packages/localizations/src/bn-IN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,7 @@ export const bnIN: LocalizationResource = {
17691769
form_password_compromised__sign_in: undefined,
17701770
form_password_incorrect: 'আপনি যে পাসওয়ার্ড লিখেছেন তা ভুল। দয়া করে আবার চেষ্টা করুন।',
17711771
form_password_length_too_short: 'আপনার পাসওয়ার্ড খুব ছোট। এটি কমপক্ষে ৮ অক্ষর দীর্ঘ হতে হবে।',
1772+
form_password_matches_identifier: undefined,
17721773
form_password_not_strong_enough: 'আপনার পাসওয়ার্ড যথেষ্ট শক্তিশালী নয়।',
17731774
form_password_or_identifier_incorrect:
17741775
'পাসওয়ার্ড বা ইমেইল ঠিকানা ভুল। আবার চেষ্টা করুন বা অন্য পদ্ধতি ব্যবহার করুন।',

packages/localizations/src/ca-ES.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,7 @@ export const caES: LocalizationResource = {
17601760
form_password_compromised__sign_in: undefined,
17611761
form_password_incorrect: 'La contrasenya introduïda és incorrecta.',
17621762
form_password_length_too_short: 'La teva contrasenya ha de tenir almenys 8 caràcters.',
1763+
form_password_matches_identifier: undefined,
17631764
form_password_not_strong_enough: 'La teva contrasenya no és prou forta.',
17641765
form_password_or_identifier_incorrect:
17651766
"La contrasenya o l'identificador és incorrecte. Torna-ho a intentar o utilitza un altre mètode.",

packages/localizations/src/cs-CZ.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ export const csCZ: LocalizationResource = {
17621762
form_password_compromised__sign_in: undefined,
17631763
form_password_incorrect: 'Heslo je nesprávné.',
17641764
form_password_length_too_short: 'Heslo je příliš krátké.',
1765+
form_password_matches_identifier: undefined,
17651766
form_password_not_strong_enough: 'Vaše heslo není dostatečně silné.',
17661767
form_password_or_identifier_incorrect:
17671768
'Heslo nebo e-mailová adresa je nesprávná. Zkuste to znovu nebo použijte jinou metodu.',

packages/localizations/src/da-DK.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,7 @@ export const daDK: LocalizationResource = {
17471747
form_password_compromised__sign_in: undefined,
17481748
form_password_incorrect: 'Adgangskoden er forkert.',
17491749
form_password_length_too_short: 'Adgangskoden er for kort.',
1750+
form_password_matches_identifier: undefined,
17501751
form_password_not_strong_enough: 'Adgangskoden er ikke stærk nok.',
17511752
form_password_or_identifier_incorrect:
17521753
'Adgangskoden eller e-mailadressen er forkert. Prøv igen eller brug en anden metode.',

packages/localizations/src/de-DE.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,7 @@ export const deDE: LocalizationResource = {
17701770
form_password_compromised__sign_in: undefined,
17711771
form_password_incorrect: 'Das eingegebene Passwort ist falsch.',
17721772
form_password_length_too_short: 'Das Passwort ist zu kurz. Es muss mindestens 8 Zeichen lang sein.',
1773+
form_password_matches_identifier: undefined,
17731774
form_password_not_strong_enough: 'Passwort nicht stark genug.',
17741775
form_password_or_identifier_incorrect:
17751776
'Passwort oder E-Mail-Adresse ist falsch. Versuchen Sie es erneut oder verwenden Sie eine andere Methode.',

packages/localizations/src/el-GR.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ export const elGR: LocalizationResource = {
17651765
form_password_incorrect: 'Ο κωδικός πρόσβασης δεν είναι σωστός.',
17661766
form_password_length_too_short:
17671767
'Ο κωδικός πρόσβασής σας πρέπει να αποτελείται από τουλάχιστον {{length}} χαρακτήρες.',
1768+
form_password_matches_identifier: undefined,
17681769
form_password_not_strong_enough: 'Ο κωδικός πρόσβασής σας δεν είναι αρκετά ισχυρός.',
17691770
form_password_or_identifier_incorrect:
17701771
'Ο κωδικός πρόσβασης ή η διεύθυνση email είναι λανθασμένη. Δοκιμάστε ξανά ή χρησιμοποιήστε άλλη μέθοδο.',

0 commit comments

Comments
 (0)