aboutsummaryrefslogtreecommitdiff
path: root/packages/bank-ui/src/pages/RegistrationPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bank-ui/src/pages/RegistrationPage.tsx')
-rw-r--r--packages/bank-ui/src/pages/RegistrationPage.tsx18
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/bank-ui/src/pages/RegistrationPage.tsx b/packages/bank-ui/src/pages/RegistrationPage.tsx
index 61939c3d6..e8e7ee858 100644
--- a/packages/bank-ui/src/pages/RegistrationPage.tsx
+++ b/packages/bank-ui/src/pages/RegistrationPage.tsx
@@ -97,7 +97,11 @@ function RegistrationForm({
// : !EMAIL_REGEX.test(email)
// ? i18n.str`Use letters and numbers only, and start with a lowercase letter`
// : undefined,
- password: !password ? i18n.str`Missing password` : undefined,
+ password: !password
+ ? i18n.str`Missing password`
+ : password.length < 8
+ ? i18n.str`Password length should be greater than 8`
+ : undefined,
repeatPassword: !repeatPassword
? i18n.str`Missing password`
: repeatPassword !== password
@@ -144,6 +148,10 @@ function RegistrationForm({
return i18n.str`Only the administrator can change the minimum cashout limit.`;
case TalerErrorCode.BANK_NON_ADMIN_SET_TAN_CHANNEL:
return i18n.str`Only admin can create accounts with second factor authentication.`;
+ case TalerErrorCode.BANK_PASSWORD_TOO_SHORT:
+ return i18n.str`Password is too short.`;
+ case TalerErrorCode.BANK_PASSWORD_TOO_LONG:
+ return i18n.str`Password is too long.`;
}
});
}
@@ -255,6 +263,14 @@ function RegistrationForm({
isDirty={password !== undefined}
/>
</div>
+ <p class="mt-2 text-sm text-gray-500">
+ <i18n.Translate>
+ Use a strong password: 8 characters minimum, don't use any
+ public information related to you (names, birthday, phone
+ number, etc...) and mix lowercase, upppercase, symbols and
+ numbers
+ </i18n.Translate>
+ </p>
</div>
<div>