add Registration code sms verification code to Language, some carrier block text Verification
This commit is contained in:
parent
9436a6e8f1
commit
82d756567e
@ -139,12 +139,12 @@ switch ($action) {
|
|||||||
file_put_contents($phoneFile, $phone);
|
file_put_contents($phoneFile, $phone);
|
||||||
// send send OTP to user
|
// send send OTP to user
|
||||||
if ($config['phone_otp_type'] === 'sms') {
|
if ($config['phone_otp_type'] === 'sms') {
|
||||||
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendSMS($phone, $config['CompanyName'] . "\n\n" . Lang::T("Verification code") . "\n$otp");
|
||||||
} elseif ($config['phone_otp_type'] === 'whatsapp') {
|
} elseif ($config['phone_otp_type'] === 'whatsapp') {
|
||||||
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n\n" . Lang::T("Verification code") . "\n$otp");
|
||||||
} elseif ($config['phone_otp_type'] === 'both') {
|
} elseif ($config['phone_otp_type'] === 'both') {
|
||||||
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendSMS($phone, $config['CompanyName'] . "\n\n" . Lang::T("Verification code") . "\n$otp");
|
||||||
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n\n" . Lang::T("Verification code") . "\n$otp");
|
||||||
}
|
}
|
||||||
//redirect after sending OTP
|
//redirect after sending OTP
|
||||||
r2(U . 'accounts/phone-update', 'e', Lang::T('Verification code has been sent to your phone'));
|
r2(U . 'accounts/phone-update', 'e', Lang::T('Verification code has been sent to your phone'));
|
||||||
|
@ -132,9 +132,9 @@ 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'] . "\nYour Verification code are: $otp");
|
Message::sendSMS($username, $config['CompanyName'] . "\n\n".Lang::T("Registration code")."\n$otp");
|
||||||
$ui->assign('username', $username);
|
$ui->assign('username', $username);
|
||||||
$ui->assign('notify', 'Verification 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');
|
||||||
$ui->display('user-ui/register-otp.tpl');
|
$ui->display('user-ui/register-otp.tpl');
|
||||||
}
|
}
|
||||||
|
@ -571,7 +571,8 @@
|
|||||||
"Languge_set_to_indonesia": "Language set to indonesia",
|
"Languge_set_to_indonesia": "Language set to indonesia",
|
||||||
"Enable": "Aktifkan",
|
"Enable": "Aktifkan",
|
||||||
"Diable": "Nonaktifkan",
|
"Diable": "Nonaktifkan",
|
||||||
"Balance" "Saldo",
|
"Verification_code": "Kod3 V3r1fik@s1",
|
||||||
|
"Registration_code": "Kod3 R3g1str@s1",
|
||||||
"TX": "TX",
|
"TX": "TX",
|
||||||
"RX": "RX",
|
"RX": "RX",
|
||||||
"Database": "Database"
|
"Database": "Database"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user