Bugzilla – Attachment 35265 Details for
Bug 10177
Koha Accepts Seven "Space" Characters as a Valid Password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10177 - whitespace is a valid password causing pernicious perturbations.
Bug-10177---whitespace-is-a-valid-password-causing.patch (text/plain), 1.33 KB, created by
Brandon
on 2015-01-14 22:46:43 UTC
(
hide
)
Description:
Bug 10177 - whitespace is a valid password causing pernicious perturbations.
Filename:
MIME Type:
Creator:
Brandon
Created:
2015-01-14 22:46:43 UTC
Size:
1.33 KB
patch
obsolete
>From df775ced67c431cda2be92978209b091c5604e97 Mon Sep 17 00:00:00 2001 >From: Brandon <brandon_h27@hotmail.com> >Date: Wed, 14 Jan 2015 22:30:01 +0000 >Subject: [PATCH] Bug 10177 - whitespace is a valid password causing > pernicious perturbations. > >Test plan: >Go to your patron, go to change username and/or password. change >password to whitespace, notice it is accepted, apply this patch, >change password again, to whitespace, notice password is not valid. >--- > .../intranet-tmpl/prog/en/modules/members/member-password.tt | 5 +++++ > 1 file changed, 5 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 96544e0..c394389 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 >@@ -9,7 +9,12 @@ > alert(_("Passwords do not match")); > return false; > } else { >+ if ($("input[name='newpassword']").val().match(/^\s*$/)) { >+ alert(_("Password contains nothing except whitespace")); >+ return false; >+ } else { > return true; >+} > } > }); > $("body").on('click', "#fillrandom",function(e) { >-- >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 10177
:
35265
|
35320
|
35343
|
35344
|
35356
|
35357