Skip to content

Commit ad71f64

Browse files
committed
hfggfngfhgfh
1 parent ad1f440 commit ad71f64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

u/signup.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
if (!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/.test(password)) {
6767
problms = [];
6868
if (password.length < 8) problms.push("Password must be at least 8 characters long.");
69-
if (!/^(?=.*[a-z])$/.test(password)) problms.push("Password must contain a lowercase letter.");
70-
if (!/^(?=.*[A-Z])$/.test(password)) problms.push("Password must contain an UPPERCASE letter.");
71-
if (!/^(?=.*\d)$/.test(password)) problms.push("Password must contain a numb3r.");
69+
if (!/^(?=.*[a-z]).{0,}$/.test(password)) problms.push("Password must contain a lowercase letter.");
70+
if (!/^(?=.*[A-Z]).{0,}$/.test(password)) problms.push("Password must contain an UPPERCASE letter.");
71+
if (!/^(?=.*\d).{0,}$/.test(password)) problms.push("Password must contain a numb3r.");
7272

7373
statusElement.textContent = "Password doesn't meet requirements!\n"+problms.join("\n");
7474

0 commit comments

Comments
 (0)