[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <6a23cd5430925_38194aec119e@gitlab-sidekiq-low-urgency-cpu-bound-v2-7bd4cd44c6-n7zc8.mail> |
MAGENE Sem Joel pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
1d68ca87 by MAGENE Sem Joel at 2026-06-06T07:27:28+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
---
* [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
(cherry picked from commit fff7ea862fed5a2f3123e8aa8487bd62d3f60a9f)
See merge request tikiwiki/tiki!10453
- - - - -
1 changed file:
- lib/tiki-js.js
Changes:
=====================================
lib/tiki-js.js
=====================================
@@ -882,12 +882,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/1d68ca87fa9990f918dcadb077923b5df5dcd67d
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1d68ca87fa9990f918dcadb077923b5df5dcd67d
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