Merge pull request #12698 from overleaf/jk-full-stops

[web] Add full-stops after 'Please use a different password'

GitOrigin-RevId: 9cac7c70358db11a74858252001a2dee211c0325
This commit is contained in:
June Kelly 2023-04-25 13:33:12 +01:00 committed by Copybot
parent f5740e6b17
commit 724a8d6113
2 changed files with 6 additions and 6 deletions

View file

@ -26,11 +26,11 @@ block content
+customFormMessage('password-contains-email', 'danger')
| #{translate('invalid_password_contains_email')}.
| #{translate('use_a_different_password')}
| #{translate('use_a_different_password')}.
+customFormMessage('password-too-similar', 'danger')
| #{translate('invalid_password_too_similar')}.
| #{translate('use_a_different_password')}
| #{translate('use_a_different_password')}.
+customFormMessage('token-expired', 'danger')
| #{translate('password_reset_token_expired')}
@ -54,7 +54,7 @@ block content
)
+customValidationMessage('invalid-password')
| #{translate('invalid_password')}
| #{translate('invalid_password')}.
+customValidationMessage('password-must-be-different')
| #{translate('password_cant_be_the_same_as_current_one')}.

View file

@ -162,17 +162,17 @@ function PasswordForm() {
/>,
]}
/>
. {t('use_a_different_password')}
. {t('use_a_different_password')}.
</>
) : getErrorMessageKey(error) === 'password-contains-email' ? (
<>
{t('invalid_password_contains_email')}.{' '}
{t('use_a_different_password')}
{t('use_a_different_password')}.
</>
) : getErrorMessageKey(error) === 'password-too-similar' ? (
<>
{t('invalid_password_too_similar')}.{' '}
{t('use_a_different_password')}
{t('use_a_different_password')}.
</>
) : (
getUserFacingMessage(error)