From 01a9d0ea954e2798148b962d48be64c126841953 Mon Sep 17 00:00:00 2001 From: janis steiner Date: Fri, 8 May 2026 00:05:23 +0200 Subject: [PATCH] update password strengh check --- app-code/account/index.php | 2 +- app-code/register/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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++;