[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();
|
document.getElementById('year').textContent = new Date().getFullYear().toString();
|
||||||
|
|
||||||
function handleSubmit(form) {
|
function handleSubmit(form) {
|
||||||
let uid = form.uid.value;
|
const field = "password"
|
||||||
console.log(uid);
|
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>
|
</script>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Reference in a new issue