shows password reset error message if internal return is false
This commit is contained in:
@@ -63,7 +63,7 @@ export default function ForgotPassword() {
|
||||
setResetLoading(true);
|
||||
try {
|
||||
const res = await userApi.StartResetPassword(reqData);
|
||||
if (res.status === 200) {
|
||||
if (res.status === 200 && res?.data?.internal_return > 0) {
|
||||
setMsgSuccess(true);
|
||||
setMail("");
|
||||
setValue(false);
|
||||
|
||||
Reference in New Issue
Block a user