[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Login: don't award digit score when password has no digits

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a2287bc731fa_381945ec99017@gitlab-sidekiq-low-urgency-cpu-bound-v2-849c9f545-8cgn6.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
6a2d55e2 by MAGENE Sem Joel at 2026-06-05T08:07:05+00:00
[FIX] Login: don't award digit score when password has no digits
---
* [FIX] Login: don't award digit score when password has no digits

See merge request tikiwiki/tiki!10429

- - - - -


1 changed file:

- lib/tiki-js.js


Changes:

=====================================
lib/tiki-js.js
=====================================
@@ -890,12 +890,16 @@ function getPasswordScore(strPassword)
 
     // Numbers
     const nNumberCount = countContain(strPassword, DIGITS);
+    let numberScore = 0;
+
     if (nNumberCount >= 3) {
-        nScore += 20;
-    } else {
-        nScore += 10;
+        numberScore = 20;
+    } else if (nNumberCount > 0) {
+        numberScore = 10;
     }
 
+    nScore += numberScore;
+
     // Special Characters
     const nCharacterCount = countContain(strPassword, SPECIAL_CHARACTERS);
     // -- 1 character



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6a2d55e2059bcbf5a0577d6ec417af83ff00a3b5

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6a2d55e2059bcbf5a0577d6ec417af83ff00a3b5
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.