Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vsoni27 #228

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dotenv.enableAutocloaking": false
}
4 changes: 2 additions & 2 deletions src/components/Signup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const Signup = () => {
// Validate Password
if (!data.password.trim()) {
errors.password = "Password is required";
} else if (data.password.length < 6) {
errors.password = "Password should be at least 6 characters long";
} else if (!/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%]).{8,20}$/.test(data.password)){
errors.password = "Password must contain at least one uppercase letter, one lowercase letter, one number, one special character, and between 8-20 characters long";
}

// Validate Confirm Password
Expand Down
Loading