diff --git a/src/PassReset/index.html b/src/PassReset/index.html index ba4b512..a6b55d3 100644 --- a/src/PassReset/index.html +++ b/src/PassReset/index.html @@ -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); } \ No newline at end of file