diff --git a/pages/reset-password.js b/pages/reset-password.js index 47781d06..cc131eba 100644 --- a/pages/reset-password.js +++ b/pages/reset-password.js @@ -34,7 +34,6 @@ export default function resetPassword({ query }) { const passwordCheck = (name, value) => { if (name === "newPassword") { const validType = validatePassword(value); - // console.log("newPassword validType -", validType); if (validType) { setValidNewPassword(validType); } @@ -42,7 +41,6 @@ export default function resetPassword({ query }) { if (name === "confirmPassword") { const validType = validatePassword(value); - // console.log("confirmPassword validType -", validType); if (validType) { setValidConfirmPassword(validType); } @@ -50,9 +48,7 @@ export default function resetPassword({ query }) { }; const handleInputChange = (e) => { - // console.log(e.target); const { name, value } = e.target; - // console.log(name, value); if (validNewPassword !== "" && name === "newPassword") { passwordCheck(name, value); } @@ -83,11 +79,8 @@ export default function resetPassword({ query }) { const handleSubmit = (e) => { e.preventDefault(); - // console.log(e.target.newPassword.value); - // console.log(e.target.confirmPassword.value); const newPass = e.target.newPassword.value; const confirmPass = e.target.confirmPassword.value; - // console.log({ password }); passwordCheck(e.target.newPassword.name, newPass); passwordCheck(e.target.confirmPassword.name, confirmPass); if ( @@ -132,9 +125,6 @@ export default function resetPassword({ query }) {
- Welcome Back! -
*/}