1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00
polr/public/js/reset_password.js
2016-05-07 23:01:44 -04:00

11 lines
308 B
JavaScript

$('#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('');
}
});