GWM : auth issue fixed
This commit is contained in:
parent
922848de54
commit
ed7e61dc3e
@ -36,7 +36,7 @@ class AgentAuthController extends ResourceController
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$result = ['agent_verification' => false , 'message' => "Verification Failed"];
|
$result = ['agent_verification' => false , 'message' => "User not found"];
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ class AgentAuthController extends ResourceController
|
|||||||
$agentData = $this->AgentModel->where('mobile', $mobile)->where('is_active', 1)->first();
|
$agentData = $this->AgentModel->where('mobile', $mobile)->where('is_active', 1)->first();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$agentData = $this->AgentModel->where('email', $email)->where('is_active', 1)->first();
|
$agentData = $this->AgentModel->where('email', $email)->where('email_otp', $otp)->where('is_active', 1)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class AgentAuthController extends ResourceController
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => []],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => 'Please try again'],200);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class StaffAuthController extends ResourceController
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$result = ['Staff_verification' => false , 'message' => "Verification Failed"];
|
$result = ['Staff_verification' => false , 'message' => "User not found"];
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ class StaffAuthController extends ResourceController
|
|||||||
$StaffData = $this->StaffModel->where('mobile', $mobile)->where('is_active', 1)->first();
|
$StaffData = $this->StaffModel->where('mobile', $mobile)->where('is_active', 1)->first();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$StaffData = $this->StaffModel->where('email', $email)->where('is_active', 1)->first();
|
$StaffData = $this->StaffModel->where('email', $email)->where('email_otp', $otp)->where('is_active', 1)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class StaffAuthController extends ResourceController
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => []],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => 'Please try again'],200);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user