FIX_LIVE_TEST_MOBILE_NO_HARD_CODED
This commit is contained in:
parent
67521d45cf
commit
0ebe041f78
@ -152,6 +152,11 @@ class RestAuthenticationController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$otp = random_int(100000, 999999);
|
$otp = random_int(100000, 999999);
|
||||||
|
if($mobile_number == '9442741776')
|
||||||
|
{
|
||||||
|
$otp = '123456';
|
||||||
|
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: setting 123456 for IOS APP TESTING = " . json_encode($employeeData));
|
||||||
|
}
|
||||||
|
|
||||||
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: Final employee data to verify = " . json_encode($employeeData));
|
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: Final employee data to verify = " . json_encode($employeeData));
|
||||||
|
|
||||||
@ -192,7 +197,14 @@ class RestAuthenticationController extends AdminController
|
|||||||
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: Calling callThirdPartyAPI for updateEmpOTP");
|
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: Calling callThirdPartyAPI for updateEmpOTP");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//skip sms for live test no
|
||||||
|
if($mobile_number == '9442741776')
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: skip SMS sent for IOS APP TESTING = " . ($mobile_number));
|
||||||
|
$result = ['user_verification' => true ,'message' => "Verified Successfully" ];
|
||||||
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
|
}
|
||||||
//send sms
|
//send sms
|
||||||
$SMSResult = sendOtpSms($mobile_number, $otp);
|
$SMSResult = sendOtpSms($mobile_number, $otp);
|
||||||
if ($SMSResult['status'] == 'success')
|
if ($SMSResult['status'] == 'success')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user