[Pass-reset] Changing from console log to alert for password don't match error message

This commit is contained in:
eoghan.conlon 2023-07-27 00:49:37 +01:00
parent dee3114263
commit 862cdebfae

View file

@ -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>