CHANGE_ getVerifiedUserData API : GWM
This commit is contained in:
parent
f68612d90c
commit
4392468481
@ -94,9 +94,16 @@ class RestAuthenticationController extends AdminController
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$mobile_number = $this->request->getJSON()->mobile_number;
|
$mobile_number = $this->request->getJSON()->mobile_number;
|
||||||
$otp_verification = $this->request->getJSON()->otp;
|
$otp_verification = $this->request->getJSON()->otp_verification;
|
||||||
|
|
||||||
$employeeData = $this->employeeModel->where('mobile', $mobile_number)->where('relationship', 'self')->first();
|
if (isset($this->request->getJSON()->login_by_hr))
|
||||||
|
{
|
||||||
|
$employeeData = $this->employeeModel->where('id', $this->request->getJSON()->employee_id)->where('relationship', 'self')->first();
|
||||||
|
}else{
|
||||||
|
$employeeData = $this->employeeModel->where('mobile', $mobile_number)->where('relationship', 'self')->first();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($employeeData && $otp_verification == true || $employeeData && isset($this->request->getJSON()->login_by_hr)) {
|
if ($employeeData && $otp_verification == true || $employeeData && isset($this->request->getJSON()->login_by_hr)) {
|
||||||
$auth = HttpRequestHelper::getRequestInfo();
|
$auth = HttpRequestHelper::getRequestInfo();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user