From 7f7d1a769f7da0da07256bfaf55314449554730a Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 10 Mar 2023 12:13:20 -0300
Subject: removing password regex

---
 packages/demobank-ui/src/pages/RegistrationPage.tsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'packages/demobank-ui/src/pages/RegistrationPage.tsx')

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
-- 
cgit v1.2.3

