diff --git a/Client/src/Pages/Auth/Login.jsx b/Client/src/Pages/Auth/Login.jsx index f69a95cfd..2868b5d75 100644 --- a/Client/src/Pages/Auth/Login.jsx +++ b/Client/src/Pages/Auth/Login.jsx @@ -144,6 +144,7 @@ const StepOne = ({ form, errors, onSubmit, onChange, onBack }) => { */ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => { const theme = useTheme(); + const navigate = useNavigate(); const inputRef = useRef(null); useEffect(() => { @@ -194,10 +195,23 @@ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => { level="primary" label="Continue" onClick={onSubmit} - disabled={errors.email && true} + disabled={errors.password && true} sx={{ width: "30%" }} /> + + + Forgot password? + + navigate("/forgot-password")} + > + Reset password + + ); @@ -292,6 +306,9 @@ const Login = () => { body: "Welcome back! You're successfully logged in.", }); } else { + setErrors({ + password: "The password you provided does not match our records", + }); if (action.payload) { // dispatch errors createToast({ @@ -368,7 +385,7 @@ const Login = () => { )} - Don't have an account? - + Don't have an account? —