[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 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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue