diff --git a/system/controllers/accounts.php b/system/controllers/accounts.php index 5a1e4726..abede61e 100644 --- a/system/controllers/accounts.php +++ b/system/controllers/accounts.php @@ -139,12 +139,12 @@ switch ($action) { file_put_contents($phoneFile, $phone); // send send OTP to user 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') { - 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') { - Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp"); - Message::sendWhatsapp($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\n" . Lang::T("Verification code") . "\n$otp"); } //redirect after sending OTP r2(U . 'accounts/phone-update', 'e', Lang::T('Verification code has been sent to your phone')); diff --git a/system/controllers/register.php b/system/controllers/register.php index b3269748..3ccedf26 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -132,9 +132,9 @@ switch ($do) { } else { $otp = rand(100000, 999999); 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('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->display('user-ui/register-otp.tpl'); } diff --git a/system/lan/indonesia.json b/system/lan/indonesia.json index 3708dbb6..cb804e6c 100644 --- a/system/lan/indonesia.json +++ b/system/lan/indonesia.json @@ -571,7 +571,8 @@ "Languge_set_to_indonesia": "Language set to indonesia", "Enable": "Aktifkan", "Diable": "Nonaktifkan", - "Balance" "Saldo", + "Verification_code": "Kod3 V3r1fik@s1", + "Registration_code": "Kod3 R3g1str@s1", "TX": "TX", "RX": "RX", "Database": "Database"