untested but that should work

main
Florent Daigniere 2 years ago
parent 001acd60ac
commit 14f802fb4a

@ -129,7 +129,13 @@ $('document').ready(function() {
$("#pw").change(function(){ $("#pw").change(function(){
hibpCheck($("#pw").value); hibpCheck($("#pw").value);
return true; return true;
}) });
$("#pw").closest("form").submit(function(event){
if($("#pwned").value > -1) {return;};
event.preventDefault();
hibpCheck($("#pw").value)
event.trigger();
});
} }
}); });

Loading…
Cancel
Save