Add special number for app store testing #246
This commit is contained in:
parent
de0272222d
commit
3df29fc842
1 changed files with 11 additions and 0 deletions
|
|
@ -245,6 +245,17 @@ class APIController extends Controller
|
|||
|
||||
$otp_mode = $_ENV['OTP_MODE'];
|
||||
|
||||
// check for hardcoded phone number for app store testing
|
||||
if ($phone_number = '639991112233')
|
||||
{
|
||||
$code = '123456';
|
||||
$this->session->setConfirmCode($code)
|
||||
->setPhoneNumber($phone_number);
|
||||
$em->flush();
|
||||
|
||||
return $res->getReturnResponse();
|
||||
}
|
||||
|
||||
// check if otp_mode is test
|
||||
if ($otp_mode == 'test')
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue