diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-10 12:13:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-10 12:13:20 -0300 |
commit | 7f7d1a769f7da0da07256bfaf55314449554730a (patch) | |
tree | f6a41d89532c7a652be6a26ae39e4fce7b1624c6 /packages/demobank-ui/src/pages/RegistrationPage.tsx | |
parent | 7d26a6a56b7119ba4387949cbe45edcd13b83b5b (diff) | |
download | wallet-core-7f7d1a769f7da0da07256bfaf55314449554730a.tar.xz |
removing password regex
Diffstat (limited to 'packages/demobank-ui/src/pages/RegistrationPage.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/RegistrationPage.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/pages/RegistrationPage.tsx b/packages/demobank-ui/src/pages/RegistrationPage.tsx index f22475e10..8554b1def 100644 --- a/packages/demobank-ui/src/pages/RegistrationPage.tsx +++ b/packages/demobank-ui/src/pages/RegistrationPage.tsx @@ -46,7 +46,6 @@ export function RegistrationPage({ } export const USERNAME_REGEX = /^[a-z][a-zA-Z0-9]*$/; -export const PASSWORD_REGEX = /^[a-z0-9][a-zA-Z0-9]*$/; /** * Collect and submit registration data. @@ -72,11 +71,7 @@ function RegistrationForm({ : !USERNAME_REGEX.test(username) ? i18n.str`Use letters and numbers only, and start with a lowercase letter` : undefined, - password: !password - ? i18n.str`Missing password` - : !PASSWORD_REGEX.test(password) - ? i18n.str`Use letters and numbers only, and start with a lowercase letter or number` - : undefined, + password: !password ? i18n.str`Missing password` : undefined, repeatPassword: !repeatPassword ? i18n.str`Missing password` : repeatPassword !== password |