Bugzilla – Attachment 39337 Details for
Bug 13664
Add password strength plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add password strength meter to add and duplicate user in staff client
Add-password-strength-meter-to-add-and-duplicate-u.patch (text/plain), 2.58 KB, created by
tadeas.moravec
on 2015-05-20 09:07:01 UTC
(
hide
)
Description:
Add password strength meter to add and duplicate user in staff client
Filename:
MIME Type:
Creator:
tadeas.moravec
Created:
2015-05-20 09:07:01 UTC
Size:
2.58 KB
patch
obsolete
>From dd6f985733f8e0bab2032d9ee896ec7f4c6758b4 Mon Sep 17 00:00:00 2001 >From: David Roberts <david.roberts@ptfs-europe.com> >Date: Tue, 5 May 2015 15:19:13 +0000 >Subject: [PATCH] Add password strength meter to add and duplicate user in > staff client > >http://bugs.koha-community.org/show_bug.cgi?id=13664 >Signed-off-by: tadeasm <tadeas.moravec@gmail.com> >Works as expected > >Signed-off-by: Tadeasm <tadeas.moravec@gmail.com> >--- > .../prog/en/modules/members/memberentrygen.tt | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index e6e42cd..61a87fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -793,6 +793,12 @@ > </li> > [%END %] > [% UNLESS nopassword %] >+<script src="https://raw.github.com/danpalmer/jquery.complexify.js/master/jquery.complexify.js"></script> >+ <script type="text/javascript"> $(function () { >+ $("#password").complexify({}, function (valid, complexity) { document.getElementById("PassValue").value = complexity; >+ }); >+ }); >+</script> > <li> > [% IF ( mandatorypassword ) %] > <label for="password" class="required"> >@@ -810,23 +816,24 @@ > [% ELSE %] > [% IF ( opduplicate ) %] > <input type="password" id="password" name="password" size="20" /> >+ > [% ELSE %] > <input type="password" id="password" name="password" size="20" value="[% password %]" /> >+[% IF ( PasswordStrength ) %] >+<meter value="0" id="PassValue" max="100"></meter> >+[% END %] > [% END %] > [% END %] > [% ELSE %] > [% IF ( password ) %] >-<script src="https://raw.github.com/danpalmer/jquery.complexify.js/master/jquery.complexify.js"></script> >- <script type="text/javascript"> $(function () { >- $("#password").complexify({}, function (valid, complexity) { document.getElementById("PassValue").value = complexity; >- }); >- }); >-</script> > [% IF ( NoUpdateLogin ) %] > <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> > [% ELSE %] > [% IF ( opduplicate ) %] > <input type="password" id="password" name="password" size="20" /> >+[% IF ( PasswordStrength ) %] >+<meter value="0" id="PassValue" max="100"></meter> >+[% END %] > [% ELSE %] > <input type="password" id="password" name="password" size="20" value="****" /> > [% IF ( PasswordStrength ) %] >-- >2.1.4
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 13664
:
38855
|
38856
|
38857
|
38858
|
38859
|
38860
|
38861
|
38862
|
38863
|
38864
|
38865
|
38866
|
38867
|
38868
|
38869
|
39322
|
39323
|
39324
|
39325
|
39326
|
39327
|
39328
|
39329
|
39330
|
39331
|
39332
|
39333
|
39334
|
39335
|
39336
|
39337
|
39544
|
39547
|
39548
|
39549
|
39550
|
39551
|
39552
|
39553
|
39554
|
39555
|
39556
|
39557
|
39558
|
39559
|
39560
|
39561
|
39562
|
39594
|
39595
|
39596
|
39597
|
39598
|
39599
|
39600
|
39601
|
39602
|
39603
|
39604
|
39605
|
39606
|
39607
|
39608
|
39609