[Pass-reset] Crude form parser now reads the entire form
This commit is contained in:
parent
94f998fa1e
commit
de6f884812
1 changed files with 12 additions and 2 deletions
|
@ -27,8 +27,18 @@
|
|||
document.getElementById('year').textContent = new Date().getFullYear().toString();
|
||||
|
||||
function handleSubmit(form) {
|
||||
let uid = form.uid.value;
|
||||
console.log(uid);
|
||||
const field = "password"
|
||||
const user = form.uid.value;
|
||||
const pass = form.oldPW.value;
|
||||
const newPW = form.newPW.value;
|
||||
const newPWConfirm = form.newPWConfirm.value;
|
||||
if (newPW === newPWConfirm){
|
||||
const value = newPW;
|
||||
console.log("new passwords match")
|
||||
} else {
|
||||
console.log("New password confirmation doesn't match");
|
||||
}
|
||||
console.log(user);
|
||||
}
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in a new issue