@@ -, +, @@ password but leading and trailing spaces are not. --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt @@ -9,8 +9,8 @@ alert(_("Passwords do not match")); return false; } else { - if ($("input[name='newpassword']").val().match(/^\s*$/)) { - alert(_("Password contains nothing except whitespace")); + if ($("input[name='newpassword']").val().match(/^\s/) || $("input[name='newpassword']").val().match(/\s$/)) { + alert(_("Password contains leading and/or trailing spaces.")); return false; } else { return true; --