Bugzilla – Attachment 108800 Details for
Bug 26266
Add jQuery validator to opac-password-recovery.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26266: Add jQuery validator to opac-password-recovery.tt
Bug-26266-Add-jQuery-validator-to-opac-password-re.patch (text/plain), 1.71 KB, created by
Timothy Alexis Vass
on 2020-08-21 10:37:30 UTC
(
hide
)
Description:
Bug 26266: Add jQuery validator to opac-password-recovery.tt
Filename:
MIME Type:
Creator:
Timothy Alexis Vass
Created:
2020-08-21 10:37:30 UTC
Size:
1.71 KB
patch
obsolete
>From 699c1662b4acebd597a601ff4cf3af9d941fa8a4 Mon Sep 17 00:00:00 2001 >From: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> >Date: Fri, 21 Aug 2020 12:30:14 +0200 >Subject: [PATCH] Bug 26266: Add jQuery validator to opac-password-recovery.tt > >To test: >1) Initiate password recovery. >2) Try to enter an invalid password. >3) Confirm that validation occurs. >4) Try to enter mismatching passwords. >5) Confirm that validation occurs. >6) Sign off. >--- > .../en/modules/opac-password-recovery.tt | 22 +++++++++++++++++++ > 1 file changed, 22 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >index 6e8ff8ae95..8a8776e476 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >@@ -145,3 +145,25 @@ > </div><!-- / .container-fluid --> > </div><!-- / .main --> > [% INCLUDE 'opac-bottom.inc' %] >+[% BLOCK jsinclude %] >+ [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %] >+ [% PROCESS 'password_check.inc' %] >+ [% PROCESS 'add_password_check' new_password => 'password' %] >+ <script> >+ $(document).ready(function() { >+ $("#mainform").validate({ >+ rules: { >+ password: { >+ required: true, >+ password_strong: true, >+ password_no_spaces: true >+ }, >+ repeatPassword: { >+ required: true, >+ password_match: true >+ } >+ } >+ }); >+ }); >+ </script> >+[% END %] >-- >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 26266
:
108800
|
108972
|
108974
|
108975
|
110312
|
110589
|
110592