phone_otp_type forgot to add
This commit is contained in:
parent
1fe2dac580
commit
7685323bd6
@ -136,7 +136,14 @@ switch ($do) {
|
|||||||
} else {
|
} else {
|
||||||
$otp = rand(100000, 999999);
|
$otp = rand(100000, 999999);
|
||||||
file_put_contents($otpPath, $otp);
|
file_put_contents($otpPath, $otp);
|
||||||
Message::sendSMS($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
if($config['phone_otp_type'] == 'whatsapp'){
|
||||||
|
Message::sendWhatsapp($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
||||||
|
}else if($config['phone_otp_type'] == 'both'){
|
||||||
|
Message::sendWhatsapp($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
||||||
|
Message::sendSMS($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
||||||
|
}else{
|
||||||
|
Message::sendSMS($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
||||||
|
}
|
||||||
$ui->assign('username', $username);
|
$ui->assign('username', $username);
|
||||||
$ui->assign('notify', 'Registration code has been sent to your phone');
|
$ui->assign('notify', 'Registration code has been sent to your phone');
|
||||||
$ui->assign('notify_t', 's');
|
$ui->assign('notify_t', 's');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user