From be066c6144103543ec281227dfafcdac4d21cba9 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 8 Dec 2023 19:58:16 +0300 Subject: [PATCH] Add input validation for login --- rsconcept/frontend/src/pages/RegisterPage.tsx | 7 +++++-- rsconcept/frontend/src/utils/constants.ts | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/rsconcept/frontend/src/pages/RegisterPage.tsx b/rsconcept/frontend/src/pages/RegisterPage.tsx index e01ba75d..a32f6068 100644 --- a/rsconcept/frontend/src/pages/RegisterPage.tsx +++ b/rsconcept/frontend/src/pages/RegisterPage.tsx @@ -15,7 +15,7 @@ import { HelpIcon } from '../components/Icons'; import { useAuth } from '../context/AuthContext'; import { useConceptNavigation } from '../context/NagivationContext'; import { type IUserSignupData } from '../models/library'; -import { globalIDs } from '../utils/constants'; +import { globalIDs, patterns } from '../utils/constants'; function RegisterPage() { const location = useLocation(); @@ -66,7 +66,7 @@ function RegisterPage() { } return (