diff --git a/src/PassReset/formHandler.js b/src/PassReset/formHandler.js index 104f882..d385408 100644 --- a/src/PassReset/formHandler.js +++ b/src/PassReset/formHandler.js @@ -5,7 +5,7 @@ function formHandler(listener){ listener.preventDefault(); const formData = new FormData(formEl); const user = formData.get("user"); - const pass = formData.get("password"); + const pass = formData.get("pass"); const newPW = formData.get("newPW"); if(newPW === formData.get("newPWConfirm")){ const object = {user: user, pass: pass, field: "userPassword", value: newPW}