taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 3f1d1e0252fb43afd0c178a3736b7bb56765465a
parent afe67f3ba5b655cad4c96199ab4c8beb1e111d4d
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue, 22 Oct 2024 15:41:05 -0300

fix #9270: min pwd length

Diffstat:
Mpackages/bank-ui/src/pages/RegistrationPage.tsx | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git 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 @@ -260,7 +264,12 @@ function RegistrationForm({ /> </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> + <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>