shows password reset error message if internal return is false

This commit is contained in:
victorAnumudu
2024-10-01 17:06:46 +01:00
parent 3992ab696c
commit d31005c1ce
@@ -63,7 +63,7 @@ export default function ForgotPassword() {
setResetLoading(true); setResetLoading(true);
try { try {
const res = await userApi.StartResetPassword(reqData); const res = await userApi.StartResetPassword(reqData);
if (res.status === 200) { if (res.status === 200 && res?.data?.internal_return > 0) {
setMsgSuccess(true); setMsgSuccess(true);
setMail(""); setMail("");
setValue(false); setValue(false);