Update password length requirement to 8 characters (#5438)

This commit is contained in:
Bailey Pumfleet authored and GitHub committed 2022-11-09 12:42:30 +00:00
1 parent 7d1fb7c659
commit 1b23671812
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -42,8 +42,8 @@ export function isPasswordValid(password: string, breakdown?: boolean) {
let cap = false, // Has uppercase characters
low = false, // Has lowercase characters
num = false, // At least one number
min = false; // Seven characters
if (password.length > 6) min = true;
min = false; // Eight characters
if (password.length > 7) min = true;
for (let i = 0; i < password.length; i++) {
if (!isNaN(parseInt(password[i]))) num = true;
else {