Projekt-Pracownia_Programow.../static/js/changePassword.js

11 lines
284 B
JavaScript
Raw Normal View History

2023-02-01 20:08:08 +01:00
function validate() {
var pass = document.getElementById("newpassword").value;
var cpass = document.getElementById("cpassword").value;
if (pass == cpass) {
return true;
} else {
alert("Passwords do not match!");
return false;
}
}