[Pass-reset] Changing from console log to alert for password don't match error message
This commit is contained in:
parent
dee3114263
commit
862cdebfae
1 changed files with 2 additions and 3 deletions
|
@ -34,11 +34,10 @@
|
||||||
const newPWConfirm = form.newPWConfirm.value;
|
const newPWConfirm = form.newPWConfirm.value;
|
||||||
if (newPW === newPWConfirm){
|
if (newPW === newPWConfirm){
|
||||||
let obj = { "user": user , "pass": pass , "field": field, "value": newPW }
|
let obj = { "user": user , "pass": pass , "field": field, "value": newPW }
|
||||||
alert("form submitted");
|
alert("Form submitted");
|
||||||
} else {
|
} else {
|
||||||
console.log("New password confirmation doesn't match");
|
alert("New passwords doesn't match");
|
||||||
}
|
}
|
||||||
console.log(user);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue