FIX_ISSUE
This commit is contained in:
parent
e82aa75c95
commit
55da3cc16c
@ -158,8 +158,8 @@ class RestAuthenticationController extends AdminController
|
||||
}
|
||||
|
||||
$otp = random_int(100000, 999999);
|
||||
$default_otp = env('DEFAULT_OTP');
|
||||
$is_send_sms_otp = env('IS_SEND_SMS_OTP');
|
||||
$default_otp = env('DEFAULT_OTP') ?? '';
|
||||
$is_send_sms_otp = filter_var(env('IS_SEND_SMS_OTP') ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if(!empty($default_otp)){
|
||||
$otp = $default_otp;
|
||||
@ -283,8 +283,8 @@ class RestAuthenticationController extends AdminController
|
||||
|
||||
$otp = random_int(100000, 999999);
|
||||
|
||||
$default_otp = env('DEFAULT_OTP');
|
||||
$is_send_email_otp = env('IS_SEND_EMAIL_OTP');
|
||||
$default_otp = env('DEFAULT_OTP') ?? '';
|
||||
$is_send_email_otp = filter_var(env('IS_SEND_EMAIL_OTP') ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if(!empty($default_otp)){
|
||||
$otp = $default_otp;
|
||||
@ -616,8 +616,8 @@ class RestAuthenticationController extends AdminController
|
||||
|
||||
$otp = random_int(100000, 999999);
|
||||
|
||||
$default_otp = env('DEFAULT_OTP');
|
||||
$is_send_sms_otp = env('IS_SEND_SMS_OTP');
|
||||
$default_otp = env('DEFAULT_OTP') ?? '';
|
||||
$is_send_sms_otp = filter_var(env('IS_SEND_SMS_OTP') ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if(!empty($default_otp)){
|
||||
$otp = $default_otp;
|
||||
@ -694,8 +694,8 @@ class RestAuthenticationController extends AdminController
|
||||
|
||||
$otp = random_int(100000, 999999);
|
||||
|
||||
$default_otp = env('DEFAULT_OTP');
|
||||
$is_send_email_otp = env('IS_SEND_EMAIL_OTP');
|
||||
$default_otp = env('DEFAULT_OTP') ?? '';
|
||||
$is_send_email_otp = filter_var(env('IS_SEND_EMAIL_OTP') ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if(!empty($default_otp)){
|
||||
$otp = $default_otp;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user