update password strengh check
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-05-08 00:05:23 +02:00
parent ea84742e67
commit 01a9d0ea95
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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++;
+1 -1
View File
@@ -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++;