Skip to content

Commit

Permalink
Update SignUp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnafnafee committed Mar 7, 2022
1 parent dc1cf14 commit 2b68524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export default function SignUp() {
name: Yup.string().required("Required"),
email: Yup.string().email("Invalid email").required("Required"),
password: Yup.string()
// TODO: Will be added during prod
.matches(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/,
/^(?=.*[A-Z])(?=.*[!@#$&*])(?=.*[0-9])(?=.*[a-z]).{8,}$/,
"Password must contain at least 8 characters, one uppercase, one lowercase and one number"
)
.required("Required"),
Expand Down

1 comment on commit 2b68524

@vercel
Copy link

@vercel vercel bot commented on 2b68524 Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.