Skip to content

Commit

Permalink
Add zod in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tanish35 committed Oct 9, 2024
1 parent eda2431 commit d5eb7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const RegisterForm = () => {
.min(3, { message: "Username must be at least 3 characters long " }),
password: z
.string()
.min(6, { message: "Password must be at least 6 characters long " })
.min(6, { message: "Password must be at least 6 characters long. " })
.regex(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,}$/,
{
Expand Down

0 comments on commit d5eb7f9

Please sign in to comment.