From 2b9f0f20109db0f1c693c0ec316ae6c1251ef875 Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Sat, 29 Jul 2023 19:03:00 +0100 Subject: [PATCH] [Sign-up_script] Fix. Password now extracted from form --- src/PassReset/formHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}