Prześlij pliki do 'static/js'

This commit is contained in:
Sławomir Łopata 2023-02-01 20:08:08 +01:00
parent 2fd5ef7dca
commit 8eee2118a5
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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;
}
}

10
static/js/validateForm.js Normal file
View File

@ -0,0 +1,10 @@
function validate() {
var pass = document.getElementById("password").value;
var cpass = document.getElementById("cpassword").value;
if (pass == cpass) {
return true;
} else {
alert("Passwords do not match");
return false;
}
}