diff --git a/src/recovery/reset.html b/src/recovery/reset.html index a35d698..0e0336c 100644 --- a/src/recovery/reset.html +++ b/src/recovery/reset.html @@ -26,7 +26,13 @@ function formHandler(listener){ listener.preventDefault(); - alert("Default bypassed"); + const formData = new FormData(formEl); + const pass = formData.get("password"); + if(pass === formData.get("confirm")){ + alert("Passwords match"); + } else { + alert("Passwords don't match"); + } }