[Pass-reset] Form data converted to json object
This commit is contained in:
parent
de6f884812
commit
dee3114263
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue