diff --git a/app-code/account/index.php b/app-code/account/index.php index a4d55c1..caae24f 100644 --- a/app-code/account/index.php +++ b/app-code/account/index.php @@ -586,9 +586,9 @@ function updatePasswordStrength() { bar.style.display = 'block'; let score = 0; - if (pw.length >= 8) score++; if (pw.length >= 12) score++; if (pw.length >= 16) score++; + if (pw.length >= 20) score++; if (/[a-z]/.test(pw) && /[A-Z]/.test(pw)) score++; if (/\d/.test(pw)) score++; if (/[^a-zA-Z0-9]/.test(pw)) score++; diff --git a/app-code/register/index.php b/app-code/register/index.php index 0e55ee4..73f3e4b 100644 --- a/app-code/register/index.php +++ b/app-code/register/index.php @@ -177,9 +177,9 @@ secure_session_start(); bar.style.display = 'block'; let score = 0; - if (pw.length >= 8) score++; if (pw.length >= 12) score++; if (pw.length >= 16) score++; + if (pw.length >= 20) score++; if (/[a-z]/.test(pw) && /[A-Z]/.test(pw)) score++; if (/\d/.test(pw)) score++; if (/[^a-zA-Z0-9]/.test(pw)) score++;