[Pass-reset] Crude form parser now reads the entire form

This commit is contained in:
eoghan.conlon 2023-07-27 00:36:36 +01:00
parent 94f998fa1e
commit de6f884812

View file

@ -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>