Bugzilla – Attachment 42325 Details for
Bug 14509
Don't allow spaces at the end, beginning or as your password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14509: (follow-up) Reject invalid passwords
Bug-14509-follow-up-Reject-invalid-passwords.patch (text/plain), 1.37 KB, created by
Marcel de Rooy
on 2015-09-03 14:07:22 UTC
(
hide
)
Description:
Bug 14509: (follow-up) Reject invalid passwords
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-09-03 14:07:22 UTC
Size:
1.37 KB
patch
obsolete
>From c94197d9e5d2b7bfff26e82030688a067363255f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 2 Sep 2015 09:43:51 +0100 >Subject: [PATCH] Bug 14509: (follow-up) Reject invalid passwords >Content-Type: text/plain; charset=utf-8 > >The members.js was not included in member-password.tt >And it cannot, there are specific code which cannot be used outside of >memberentry.tt > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../intranet-tmpl/prog/en/modules/members/member-password.tt | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >index 6b0e965..5d55ef5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >@@ -3,6 +3,14 @@ > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/JavaScript"> > //<![CDATA[ >+ >+ function check_password( password ) { >+ if ( password.match(/^\s/) || password.match(/\s$/)) { >+ return false; >+ } >+ return true; >+ } >+ > $(document).ready(function() { > var MSG_PASSWORD_CONTAINS_TRAILING_SPACES = _("Password contains leading and/or trailing spaces."); > $("#changepasswordf").submit(function(){ >-- >1.7.10.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 14509
:
40993
|
41295
|
42194
|
42324
| 42325