View | Details | Raw Unified | Return to bug 10177
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt (-3 / +2 lines)
Lines 9-16 Link Here
9
                alert(_("Passwords do not match"));
9
                alert(_("Passwords do not match"));
10
                return false;
10
                return false;
11
            } else {
11
            } else {
12
                if ($("input[name='newpassword']").val().match(/^\s*$/)) { 
12
                if ($("input[name='newpassword']").val().match(/^\s/) || $("input[name='newpassword']").val().match(/\s$/)) { 
13
                  alert(_("Password contains nothing except whitespace"));
13
                  alert(_("Password contains leading and/or trailing spaces."));
14
                  return false;
14
                  return false;
15
              } else {
15
              } else {
16
                return true;
16
                return true;
17
- 

Return to bug 10177