Skip to content

Commit

Permalink
Show password requirements in change/reset password views
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Aug 9, 2024
1 parent 8155c81 commit b445d96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const ChangePasswordView = () => {
<ProtectedRoute canUse={canChangePassword} canUseLoading={canChangePasswordLoading}>
<CenteredContainer title={t('admin.changePassword.title')}>
<Stack gap={4}>
<p>{t('admin.passwordRequirements')}</p>
<PasswordInput
label={t('admin.changePassword.currentPassword')}
value={currentPassword}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const ResetPasswordView = () => {
<ProtectedRoute canUse={canResetPassword} canUseLoading={canResetPasswordLoading}>
<CenteredContainer title={t('admin.resetPassword.title')}>
<Stack gap={4}>
<p>{t('admin.passwordRequirements')}</p>
<PasswordInput
label={t('admin.resetPassword.password')}
value={password}
Expand Down
4 changes: 3 additions & 1 deletion projects/bp-gallery/src/shared/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"Username already taken": "Der Nutzername ist bereits vergeben",
"Email already taken": "Die E-Mail ist bereits vergeben",
"email must be a valid email": "Die E-Mail ist keine gültige E-Mail",
"password must be at least 12 characters long and must contain at least a small letter, a capital letter, a number and a special character": "Das Passwort muss mindestens 12 Zeichen lang sein und muss mindestens einen Kleinbuchstaben, einen Großbuchstaben, eine Ziffer und ein Sonderzeichen enthalten",
"password must be at least 12 characters long and must contain at least a small letter, a capital letter, a number and a special character": "$t(admin.passwordRequirementsNoPeriod)",
"password must be at least 6 characters": "Das Passwort muss mindestens 6 Zeichen lang sein"
},
"comment": {
Expand Down Expand Up @@ -391,6 +391,8 @@
"email": "E-Mail",
"success": "E-Mail versendet"
},
"passwordRequirementsNoPeriod": "Das neue Passwort muss mindestens 12 Zeichen lang sein und muss mindestens einen Kleinbuchstaben, einen Großbuchstaben, eine Ziffer und ein Sonderzeichen enthalten",
"passwordRequirements": "$t(admin.passwordRequirementsNoPeriod).",
"resetPassword": {
"title": "Passwort setzen/zurücksetzen",
"password": "Neues Passwort",
Expand Down

0 comments on commit b445d96

Please sign in to comment.