1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 19:52:28 +01:00
polr/public/js/reset_password.js

11 lines
308 B
JavaScript
Raw Permalink Normal View History

$('#passwordConfirm').on('keyup', function() {
var password = $('#passwordFirst').val();
var confirm_password = $('#passwordConfirm').val();
if (password != confirm_password) {
this.setCustomValidity("Passwords do not match.");
} else {
this.setCustomValidity('');
}
});