From dee31142638f7da75ffaa47bff293a7c4757ad47 Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Thu, 27 Jul 2023 00:47:43 +0100 Subject: [PATCH] [Pass-reset] Form data converted to json object --- src/PassReset/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PassReset/index.html b/src/PassReset/index.html index a6b55d3..963cf44 100644 --- a/src/PassReset/index.html +++ b/src/PassReset/index.html @@ -33,8 +33,8 @@ const newPW = form.newPW.value; const newPWConfirm = form.newPWConfirm.value; if (newPW === newPWConfirm){ - const value = newPW; - console.log("new passwords match") + let obj = { "user": user , "pass": pass , "field": field, "value": newPW } + alert("form submitted"); } else { console.log("New password confirmation doesn't match"); }