Prześlij pliki do 'static/js'
This commit is contained in:
parent
2fd5ef7dca
commit
8eee2118a5
10
static/js/changePassword.js
Normal file
10
static/js/changePassword.js
Normal 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
10
static/js/validateForm.js
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user