diff --git a/frontend/src/pages/Admin/Components/Profile/Profile.jsx b/frontend/src/pages/Admin/Components/Profile/Profile.jsx index abfafad4..e03e5fd5 100644 --- a/frontend/src/pages/Admin/Components/Profile/Profile.jsx +++ b/frontend/src/pages/Admin/Components/Profile/Profile.jsx @@ -37,7 +37,7 @@ export function Profile(props) { lastName: Joi.string().regex(/^[A-Za-z]*$/).required().label("Last Name"), email: Joi.string().email().required().label("Email"), phone: Joi.string().regex(/[+]91[6-9]{1}[0-9]{9}$/).required().label("Contact Number"), - username: Joi.string().regex(/^[A-Za-z]+$/).required().label("Username") + username: Joi.string().regex(/^[A-Za-z][A-Za-z0-9_]{7,29}$/).required().label("Username") }; const handleCloseToast = () => { @@ -225,6 +225,7 @@ export function Profile(props) {
{name}
+
{username}
{email}
{phone}