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

"MAGENE Sem Joel \(@Jomagene\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a23c896a9840_384ff9994962a9@gitlab-sidekiq-low-urgency-cpu-bound-v2-7bd4cd44c6-lx745.mail>

MAGENE Sem Joel pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
fff7ea86 by MAGENE Sem Joel at 2026-06-06T07:06:11+00:00
[BP][FIX] Login: don't award digit score when password has no digits
---
* [BP][FIX] Login: don't award digit score when password has no digits
---
* [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

(cherry picked from commit 6a2d55e2059bcbf5a0577d6ec417af83ff00a3b5)

See merge request tikiwiki/tiki!10451

(cherry picked from commit 71dcce475dd05328eca2eb2f1cfc062d89f58559)

See merge request tikiwiki/tiki!10452

- - - - -


1 changed file:

- lib/tiki-js.js


Changes:

=====================================
lib/tiki-js.js
=====================================
@@ -886,12 +886,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/fff7ea862fed5a2f3123e8aa8487bd62d3f60a9f

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fff7ea862fed5a2f3123e8aa8487bd62d3f60a9f
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.