Update password length requirement to 8 characters (#5438)
parent
7d1fb7c659
commit
1b23671812
|
@ -417,7 +417,7 @@
|
|||
"forgotten_secret_description": "If you have lost or forgotten this secret, you can change it, but be aware that all integrations using this secret will need to be updated",
|
||||
"current_incorrect_password": "Current password is incorrect",
|
||||
"password_hint_caplow": "Mix of uppercase & lowercase letters",
|
||||
"password_hint_min": "Minimum 7 characters long",
|
||||
"password_hint_min": "Minimum 8 characters long",
|
||||
"password_hint_num": "Contain at least 1 number",
|
||||
"invalid_password_hint": "The password must be a minimum of 7 characters long containing at least one number and have a mixture of uppercase and lowercase letters",
|
||||
"incorrect_password": "Password is incorrect.",
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue