Bugzilla – Attachment 109833 Details for
Bug 23816
Allow to have different password strength and length settings for different patron categories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23816: Fix patron edition
Bug-23816-Fix-patron-edition.patch (text/plain), 1.48 KB, created by
Jonathan Druart
on 2020-09-10 07:58:34 UTC
(
hide
)
Description:
Bug 23816: Fix patron edition
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-09-10 07:58:34 UTC
Size:
1.48 KB
patch
obsolete
>From 6786fc09f0a508cbd0c8f0638d2936b2355fdede Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 10 Sep 2020 09:57:51 +0200 >Subject: [PATCH] Bug 23816: Fix patron edition > >The patron edition was broken, we always got the pattern alert >Password: >Password must contain at least 8 characters, including UPPERCASE, lowercase and numbers >--- > koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc >index 1c11896c57..2960da66ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc >@@ -14,7 +14,7 @@ > var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength'); > var regex_text = require_strong?"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{"+min_lenght+",}":".{"+min_lenght+",}"; > var pattern_regex = new RegExp(regex_text); >- return this.optional(element) || pattern_regex.test(value); >+ return this.optional(element) || value == '****' || pattern_regex.test(value); > }, function(unused, element) { > var require_strong = $('select'+category_selector+' option:selected').data('pwdStrong'); > var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength'); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23816
:
103099
|
103100
|
103101
|
103102
|
103103
|
103104
|
103108
|
103109
|
103110
|
103111
|
103112
|
103113
|
103805
|
103806
|
103807
|
103808
|
103809
|
103810
|
107158
|
107159
|
107160
|
107161
|
107162
|
107163
|
108554
|
108555
|
108556
|
108557
|
108558
|
108559
|
108571
|
108572
|
109243
|
109244
|
109245
|
109249
|
109250
|
109251
|
109252
|
109253
|
109254
|
109255
|
109256
|
109257
|
109520
|
109521
|
109522
|
109523
|
109524
|
109525
|
109526
|
109527
|
109528
| 109833 |
109834