Skip to content

Commit f390da1

Browse files
authored
fix(localizations): Update compromised password message for clarity (#7406)
1 parent 11da6f5 commit f390da1

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.changeset/thin-ends-punch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

integration/tests/session-tasks-sign-in-reset-password.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
3030

3131
await expect(
3232
u.page.getByText(
33-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
33+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
3434
),
3535
).toBeVisible();
3636
await u.po.signIn.getAltMethodsEmailCodeButton().click();
@@ -83,7 +83,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
8383

8484
await expect(
8585
u.page.getByText(
86-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
86+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
8787
),
8888
).toBeVisible();
8989
await u.po.signIn.getAltMethodsEmailCodeButton().click();

packages/localizations/src/en-US.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,9 @@ export const enUS: LocalizationResource = {
907907
form_password_pwned__sign_in:
908908
'This password has been found as part of a breach and can not be used, please reset your password.',
909909
form_password_size_in_bytes_exceeded: undefined,
910-
form_password_compromised__sign_in:
911-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
910+
form_password_compromised__sign_in: undefined,
912911
form_password_untrusted__sign_in:
913-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
912+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
914913
form_password_validation_failed: undefined,
915914
form_username_invalid_character: undefined,
916915
form_username_invalid_length: 'Your username must be between {{min_length}} and {{max_length}} characters long.',

packages/ui/src/components/SignIn/__tests__/SignInFactorOne.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ describe('SignInFactorOne', () => {
369369
const errJSON = {
370370
code: 'form_password_compromised',
371371
long_message:
372-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
372+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
373373
message:
374-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
374+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
375375
meta: { param_name: 'password' },
376376
};
377377

@@ -387,7 +387,7 @@ describe('SignInFactorOne', () => {
387387

388388
await screen.findByText('Password compromised');
389389
await screen.findByText(
390-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
390+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
391391
);
392392

393393
await screen.findByText('Email code to [email protected]');
@@ -410,9 +410,9 @@ describe('SignInFactorOne', () => {
410410
const errJSON = {
411411
code: 'form_password_compromised',
412412
long_message:
413-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
413+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
414414
message:
415-
"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",
415+
'Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.',
416416
meta: { param_name: 'password' },
417417
};
418418

0 commit comments

Comments
 (0)