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.
Followed test plan. Patch behaves as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
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) {