[Pass-reset] Form data converted to json object

This commit is contained in:
eoghan.conlon 2023-07-27 00:47:43 +01:00
parent de6f884812
commit dee3114263

View file

@ -33,8 +33,8 @@
const newPW = form.newPW.value; const newPW = form.newPW.value;
const newPWConfirm = form.newPWConfirm.value; const newPWConfirm = form.newPWConfirm.value;
if (newPW === newPWConfirm){ if (newPW === newPWConfirm){
const value = newPW; let obj = { "user": user , "pass": pass , "field": field, "value": newPW }
console.log("new passwords match") alert("form submitted");
} else { } else {
console.log("New password confirmation doesn't match"); console.log("New password confirmation doesn't match");
} }