[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 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");
}