RomanL 8 ani în urmă
părinte
comite
8c7008f79a

+ 1 - 1
inc/classes/BxDolAccount.php

@@ -109,7 +109,7 @@ class BxDolAccount extends BxDolFactory implements iBxDolSingleton
         return false;
     }
     
-    public function ConfirmationStatus($iAccountId = false)
+    public function getCurrentConfirmationStatusValue($iAccountId = false)
     {
         $a = $this->getInfo((int)$iAccountId);
         $sTmp = $a['email_confirmed'] . $a['phone_confirmed'];

+ 10 - 2
inc/classes/BxDolTwilio.php

@@ -7,7 +7,7 @@
  * @{
  */
 
-class BxDolTwilio extends BxDolDb implements iBxDolSingleton
+class BxDolTwilio extends BxDolFactory implements iBxDolSingleton
 {
     protected $_sSid;
     protected $_sToken;
@@ -45,7 +45,7 @@ class BxDolTwilio extends BxDolDb implements iBxDolSingleton
         return $GLOBALS['bxDolClasses'][__CLASS__];
     }
     
-    public function SendSms($sTo, $sMessage, $sFrom = '')
+    public function sendSms($sTo, $sMessage, $sFrom = '')
     {
         try{
             require_once BX_DIRECTORY_PATH_PLUGINS . 'Twilio/autoload.php'; // Loads the library
@@ -55,9 +55,17 @@ class BxDolTwilio extends BxDolDb implements iBxDolSingleton
             return true;
         }
         catch (Exception $oException) {
+            $this->writeLog($oException);
             return false;
         }
     }
+    
+    private function writeLog($oContents)
+	{
+		$file = dirname(__FILE__) . '/bx_twilio.log';   
+		file_put_contents($file, date('m-d H:i:s').": ", FILE_APPEND);            
+		file_put_contents($file, serialize($oContents)."\n", FILE_APPEND);
+	}
 }
 
 /** @} */

+ 3 - 4
install/sql/system.sql

@@ -2900,10 +2900,9 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
 ('sys_account_create', 'name', 2147483647, 1, 1),
 ('sys_account_create', 'email', 2147483647, 1, 2),
 ('sys_account_create', 'password', 2147483647, 1, 3),
-('sys_account_create', 'phone', 2147483647, 1, 4),
-('sys_account_create', 'receive_news', 2147483647, 1, 5),
-('sys_account_create', 'do_submit', 2147483647, 1, 6),
-('sys_account_create', 'agreement', 2147483647, 1, 7),
+('sys_account_create', 'receive_news', 2147483647, 1, 4),
+('sys_account_create', 'do_submit', 2147483647, 1, 5),
+('sys_account_create', 'agreement', 2147483647, 1, 6),
 
 ('sys_account_settings_email', 'email', 2147483647, 1, 1),
 ('sys_account_settings_email', 'password_current', 2147483647, 1, 2),

+ 1 - 1
modules/boonex/accounts/classes/BxAccntGridAdministration.php

@@ -261,7 +261,7 @@ class BxAccntGridAdministration extends BxBaseModProfileGridAdministration
         $oAccount = BxDolAccount::getInstance($aRow['id']);
         $s = "";
         if ($oAccount)
-            $s = $oAccount->ConfirmationStatus();
+            $s = $oAccount->getCurrentConfirmationStatus();
         return parent::_getCellDefault(_t('_bx_accnt_grid_confirmation_status_' . $s), $sKey, $aField, $aRow);
     }
 

+ 13 - 13
modules/boonex/english/data/langs/system/en.xml

@@ -1230,7 +1230,7 @@
 	<string name="_adm_stg_cpt_category_storage"><![CDATA[Storage]]></string>
 	<string name="_adm_stg_cpt_category_system"><![CDATA[System]]></string>
 	<string name="_adm_stg_cpt_category_templates"><![CDATA[Templates]]></string>
-	<string name="_adm_stg_cpt_category_twilio_gate"><![CDATA[Twilio gate]]></string>
+	<string name="_adm_stg_cpt_category_twilio_gate"><![CDATA[Twilio]]></string>
 	<string name="_adm_stg_cpt_option_currency_code"><![CDATA[Currency code (for checkout system)]]></string>
 	<string name="_adm_stg_err_option_currency_code"><![CDATA[Cannot be empty.]]></string>
 	<string name="_adm_stg_cpt_option_currency_sign"><![CDATA[Currency sign (for display purposes only)]]></string>
@@ -1303,7 +1303,7 @@
     <string name="_adm_stg_cpt_option_sys_push_rest_api"><![CDATA[REST API Key]]></string>
 	<string name="_adm_stg_cpt_option_sys_twilio_gate_sid"><![CDATA[Account SID]]></string>
 	<string name="_adm_stg_cpt_option_sys_twilio_gate_token"><![CDATA[Auth token]]></string>
-	<string name="_adm_stg_cpt_option_sys_twilio_gate_from_number"><![CDATA[Default 'From' number fror SMS]]></string>
+	<string name="_adm_stg_cpt_option_sys_twilio_gate_from_number"><![CDATA[Default 'From' number for SMS]]></string>
     <string name="_adm_stg_cpt_option_sys_push_short_name"><![CDATA[Short name (required only for http sites. It must match the Subdomain you entered on the Web Push settings on the OneSignal dashboard)]]></string>
     <string name="_adm_stg_cpt_option_sys_push_safari_id"><![CDATA[Apple Safari Web ID on the Web Push settings]]></string>
     <string name="_adm_stg_cpt_option_sys_push_queue_send_per_start"><![CDATA[Number of messages to send from Push queue per run]]></string>
@@ -1916,10 +1916,10 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_form_confirm_phone_confirmation_input_code"><![CDATA[Code]]></string>
 	<string name="_sys_form_confirm_phone_input_submit"><![CDATA[Submit]]></string>
 	<string name="_sys_form_confirm_phone_input_caption_system_do_submit"><![CDATA[Submit]]></string>
-	<string name="_sys_form_confirm_phone_input_sendsms"><![CDATA[Send Sms]]></string>
-	<string name="_sys_form_confirm_phone_input_caption_system_do_sendsms"><![CDATA[Send Sms]]></string>
+	<string name="_sys_form_confirm_phone_input_sendsms"><![CDATA[Send SMS]]></string>
+	<string name="_sys_form_confirm_phone_input_caption_system_do_sendsms"><![CDATA[Send SMS]]></string>
 	<string name="_sys_form_confirm_phone_input_code_error_empty"><![CDATA[Cannot be empty.]]></string>
-	<string name="_sys_form_confirm_phone_input_code_error_invalid"><![CDATA[Wrong verification code. Please, repeat code or <a href="{0}">change phone number and repeat from the beginning</a>.]]></string>
+	<string name="_sys_form_confirm_phone_input_code_error_invalid"><![CDATA[Wrong verification code. Please, repeat code or <a href="{0}">change the phone number and repeat from the beginning</a>.]]></string>
 	<string name="_sys_form_account_input_phone_error"><![CDATA[Phone is not valid]]></string>
 	<string name="_sys_form_display_account_create"><![CDATA[Create Account]]></string>
 	<string name="_sys_form_display_account_settings_delete"><![CDATA[Delete Account]]></string>
@@ -1956,7 +1956,7 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_form_login_input_caption_system_agreement"><![CDATA[Agreement]]></string>
 	<string name="_sys_form_login_input_caption_system_captcha"><![CDATA[Captcha]]></string>
 	<string name="_sys_form_login_input_caption_system_checkcode"><![CDATA[Submit]]></string>
-	<string name="_sys_form_login_input_caption_system_code"><![CDATA[de from SMS]]></string>
+	<string name="_sys_form_login_input_caption_system_code"><![CDATA[Code from SMS]]></string>
 	<string name="_sys_form_login_input_caption_system_delete_confirm"><![CDATA[Confirm Delete]]></string>
 	<string name="_sys_form_login_input_caption_system_delete_content"><![CDATA[Delete with Content]]></string>
 	<string name="_sys_form_login_input_caption_system_do_submit"><![CDATA[Sign up]]></string>
@@ -1986,7 +1986,7 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_form_login_input_code_error_empty"><![CDATA[Cannot be empty.]]></string>
 	<string name="_sys_form_login_input_phone_error_format"><![CDATA[Wrong phone number, allowed digits only and start from '+']]></string>
 	<string name="_sys_form_login_input_phone_error_not_unique"><![CDATA[This phone is already used by someone.]]></string>
-	<string name="_sys_form_login_input_code_error_invalid"><![CDATA[Wrong verification code. Please, repeat code or <a href="{0}">change phone number and repeat from the beginning</a>.]]></string>
+	<string name="_sys_form_login_input_code_error_invalid"><![CDATA[Wrong verification code. Please, repeat code or <a href="{0}">change the phone number and repeat from the beginning</a>.]]></string>
 	
 	<string name="_sys_form_paceholder_profiles_suggestions"><![CDATA[Type name here...]]></string>
 	<string name="_sys_form_report"><![CDATA[Report]]></string>
@@ -2529,9 +2529,9 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_txt_confirm_phone_set_phone_error_occured"><![CDATA[Error occurred, please try to login to your account and repeat verification.]]></string>
 	<string name="_sys_txt_confirm_phone_send_sms_error_occured"><![CDATA[Error occurred, please report error to site administrator.]]></string>
 	<string name="_sys_txt_confirm_phone_sms_text"><![CDATA[Your phone's verification code is {0}.]]></string>
-	<string name="_sys_txt_confirm_phone_confirm_success"><![CDATA[Your phone is confirmed successfully.]]></string>
-	<string name="_sys_txt_confirm_phone_set_phone_desc_set_phone"><![CDATA[Please enter phone number for seinding verification SMS.]]></string>
-	<string name="_sys_txt_confirm_phone_set_phone_desc_phone_confirmation"><![CDATA[Please enter verification code from SMS.]]></string>
+	<string name="_sys_txt_confirm_phone_confirm_success"><![CDATA[Your phone is confirmed successes.]]></string>
+	<string name="_sys_txt_confirm_phone_set_phone_desc_set_phone"><![CDATA[Please enter a phone number for sending verification SMS.]]></string>
+	<string name="_sys_txt_confirm_phone_set_phone_desc_phone_confirmation"><![CDATA[Please enter verification code from the SMS.]]></string>
 	
     <string name="_sys_txt_current_picture"><![CDATA[Current Picture]]></string>
 	<string name="_sys_txt_data_successfully_submitted"><![CDATA[Done]]></string>
@@ -2551,7 +2551,7 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_txt_field_updated"><![CDATA[Updated:]]></string>
 	<string name="_sys_txt_forgot_pasword"><![CDATA[Forgot password?]]></string>
 	<string name="_sys_txt_forgot_pasword_check_email"><![CDATA[Email was sent, please follow instructions in the email message.]]></string>
-	<string name="_sys_txt_forgot_pasword_check_phone"><![CDATA[Sms was sent, please follow instructions in the sms.]]></string>
+	<string name="_sys_txt_forgot_pasword_check_phone"><![CDATA[SMS was sent, please follow instructions in the SMS.]]></string>
 	<string name="_sys_txt_forgot_pasword_desc"><![CDATA[Enter your account email address to get a password-reset link.]]></string>
 	<string name="_sys_txt_forgot_pasword_by_both_desc"><![CDATA[Enter your account email address or phone to get a password-reset link.]]></string>
 	<string name="_sys_txt_forgot_pasword_by_phone_desc"><![CDATA[Enter your account phone to get a password-reset link.]]></string>
@@ -2568,9 +2568,9 @@ If it is not enabled then please consider implement this optimization, since it
 
     <string name="_sys_txt_homepage_cover"><![CDATA[Unity is strength... when there is teamwork and collaboration, wonderful things can be achieved.<br /><button class="bx-btn bx-hide-when-logged-in bx-def-margin-top" onclick="document.location='{0}'">Join Now!</button>]]></string>
 	<string name="_sys_txt_login_2fa_description"><![CDATA[Two-Factor Authentication is Enabled In addition to your username and password, you'll need to enter a verification code that we'll send you.]]></string>
-	<string name="_sys_txt_login_2fa_description2"><![CDATA[Please enter verification code from SMS.]]></string>
+	<string name="_sys_txt_login_2fa_description2"><![CDATA[Please enter verification code from the SMS.]></string>
 	<string name="_sys_txt_login_2fa_sms_text"><![CDATA[Your verification code is {0}.]]></string>
-	<string name="_sys_txt_login_2fa_sms_error_occured"><![CDATA[Error occurred, please report error to site administrator.]]></string>
+	<string name="_sys_txt_login_2fa_sms_error_occured"><![CDATA[An error occurred, please report error to the site administrator.]]></string>
     <string name="_sys_txt_join_description"><![CDATA[Already a member? <a href="{0}">Log in.</a>]]></string>
 	<string name="_sys_txt_login_description"><![CDATA[Not a member yet? <a href="{0}">Sign up.</a>]]></string>
 	<string name="_sys_txt_login_error"><![CDATA[Entered email or password is incorrect. Please try again.]]></string>

+ 11 - 11
modules/boonex/russian/data/langs/system/ru.xml

@@ -1916,10 +1916,10 @@
 	<string name="_sys_form_confirm_phone_confirmation_input_code"><![CDATA[Код]]></string>
 	<string name="_sys_form_confirm_phone_input_submit"><![CDATA[Выполнить]]></string>
 	<string name="_sys_form_confirm_phone_input_caption_system_do_submit"><![CDATA[Выполнить]]></string>
-	<string name="_sys_form_confirm_phone_input_sendsms"><![CDATA[Отправить Sms]]></string>
-	<string name="_sys_form_confirm_phone_input_caption_system_do_sendsms"><![CDATA[Отправить Sms]]></string>
+	<string name="_sys_form_confirm_phone_input_sendsms"><![CDATA[Отправить SMS]]></string>
+	<string name="_sys_form_confirm_phone_input_caption_system_do_sendsms"><![CDATA[Отправить SMS]]></string>
 	<string name="_sys_form_confirm_phone_input_code_error_empty"><![CDATA[Обязательное поле.]]></string>
-	<string name="_sys_form_confirm_phone_input_code_error_invalid"><![CDATA[Неправильный код проверки. Пожалуйста, повторите код или  <a href="{0}">измените телефонный номер и начните сначала</a>.</a>]]></string>
+	<string name="_sys_form_confirm_phone_input_code_error_invalid"><![CDATA[Неправильный код проверки. Пожалуйста, повторите код или  <a href="{0}">измените телефонный номер и начните сначала</a>.]]></string>
 	<string name="_sys_form_display_account_create"><![CDATA[Создать аккаунт]]></string>
 	<string name="_sys_form_display_account_settings_delete"><![CDATA[Удалить аккаунт]]></string>
 	<string name="_sys_form_display_account_settings_email"><![CDATA[Настройки имейла]]></string>
@@ -1928,7 +1928,7 @@
 	<string name="_sys_form_display_comment_edit"><![CDATA[Редактировать форму комментария]]></string>
 	<string name="_sys_form_display_comment_post"><![CDATA[Разместить форму комментария]]></string>
 	<string name="_sys_form_display_confirm_email"><![CDATA[Подтверждение имейла]]></string>
-	<string name="_sys_form_display_confirm_phone_set_phone"><![CDATA[Задание телефона]]></string>
+	<string name="_sys_form_display_confirm_phone_set_phone"><![CDATA[Сохраниение телефона]]></string>
 	<string name="_sys_form_display_confirm_phone_confirmation"><![CDATA[Подтверждение телефона]]></string>
 	<string name="_sys_form_display_forgot_password"><![CDATA[Забыли пароль?]]></string>
 	<string name="_sys_form_display_login"><![CDATA[Войти]]></string>
@@ -1941,7 +1941,7 @@
 	<string name="_sys_form_forgot_password_email_not_recognized"><![CDATA[Этот эл. адрес не принадлежит ни одному аккаунту. Удостоверьтесь, что он введён правильно.]]></string>
 	<string name="_sys_form_forgot_password_phone_not_recognized"><![CDATA[Этот телефон не принадлежит ни одному аккаунту. Удостоверьтесь, что он введён правильно.]]></string>
 	<string name="_sys_form_forgot_password_phone_error_format"><![CDATA[Телефон должен содержать только цифры и начинаться с '+']]></string>
-	<string name="_sys_form_forgot_password_phone_and_email_empty_error"><![CDATA[Нужно ввести либо телефон, либо емайл]]></string>
+	<string name="_sys_form_forgot_password_phone_and_email_empty_error"><![CDATA[Нужно ввести либо телефон, либо имейл]]></string>
 	<string name="_sys_form_forgot_password_input_caption_system_do_submit"><![CDATA[Выполнить]]></string>
 	<string name="_sys_form_forgot_password_input_caption_system_email"><![CDATA[Имейл]]></string>
 	<string name="_sys_form_forgot_password_input_email"><![CDATA[Имейл]]></string>
@@ -1971,7 +1971,7 @@
 	<string name="_sys_form_login_input_caption_system_relocate"><![CDATA[Переместить]]></string>
 	<string name="_sys_form_login_input_caption_system_remember_me"><![CDATA[Запомнить меня]]></string>
 	<string name="_sys_form_login_input_caption_system_role"><![CDATA[Роль]]></string>
-	<string name="_sys_form_login_input_caption_system_sendsms"><![CDATA[Отправить Sms]]></string>
+	<string name="_sys_form_login_input_caption_system_sendsms"><![CDATA[Отправить SMS]]></string>
 	<string name="_sys_form_login_input_caption_system_submit"><![CDATA[Выполнить]]></string>
 	<string name="_sys_form_login_input_caption_system_submit_text"><![CDATA[Текст отправки]]></string>
 	<string name="_sys_form_login_input_checkcode"><![CDATA[Выполнить]]></string>
@@ -1980,12 +1980,12 @@
 	<string name="_sys_form_login_input_password"><![CDATA[Пароль]]></string>
 	<string name="_sys_form_login_input_phone"><![CDATA[Телефон]]></string>
 	<string name="_sys_form_login_input_remember_me"><![CDATA[Запомнить меня]]></string>
-	<string name="_sys_form_login_input_sendsms"><![CDATA[Отправить Sms]]></string>
+	<string name="_sys_form_login_input_sendsms"><![CDATA[Отправить SMS]]></string>
 	<string name="_sys_form_login_input_submit"><![CDATA[Вход]]></string>
 	<string name="_sys_form_login_input_code_error_empty"><![CDATA[Обязательное поле.]]></string>
 	<string name="_sys_form_login_input_phone_error_format"><![CDATA[Телефон должен содержать только цифры и начинаться с '+']]></string>
 	<string name="_sys_form_login_input_phone_error_not_unique"><![CDATA[Этот телефон уже кем-то используется]]></string>
-	<string name="_sys_form_login_input_code_error_invalid"><![CDATA[Неправильный код проверки. Пожалуйста, повторите код или  <a href="{0}">измените телефонный номер и начните сначала</a>.</a>]]></string>
+	<string name="_sys_form_login_input_code_error_invalid"><![CDATA[Неправильный код проверки. Пожалуйста, повторите код или  <a href="{0}">измените телефонный номер и начните сначала</a>.]]></string>
 	
 	<string name="_sys_form_paceholder_profiles_suggestions"><![CDATA[Введите имя...]]></string>
 	<string name="_sys_form_report"><![CDATA[Пожаловаться]]></string>
@@ -2513,7 +2513,7 @@
 	<string name="_sys_txt_account_profile_context_changed_success"><![CDATA[Текущий профиль удачно изменён на: <b>{0}</b>]]></string>
 	<string name="_sys_txt_account_suspended"><![CDATA[Ваш аккаунт заблокирован.]]></string>
 	<string name="_sys_txt_account_unconfirmed_email"><![CDATA[Ваш имейл не подтверждён. Пожалуйста, проверьте свой эл. ящик ({1}) на наличие письма подтверждения и перейдите по ссылке в нём. <br />Не можете найти письмо? Проверьте папку "спам" или <a href="{0}">снова запросите письмо верификации</a>.]]></string>
-	<string name="_sys_txt_account_unconfirmed_phone"><![CDATA[Ваш телефон не подтверждён. Пожалуйста, подвердите его на  <a href="{0}">странице верификации</a>.]]></string>
+	<string name="_sys_txt_account_unconfirmed_phone"><![CDATA[Ваш телефон не подтверждён. Пожалуйста, подтвердите его на  <a href="{0}">странице верификации</a>.]]></string>
 	<string name="_sys_txt_account_profile_system"><![CDATA[Пожалуйста, <a href="{0}">создайте профиль</a>, чтобы начать пользоваться сайтом.]]></string>
 	<string name="_sys_txt_captcha_not_available"><![CDATA[CAPTCHA недоступна]]></string>
     <string name="_sys_txt_change_image"><![CDATA[Изменить картинку]]></string>
@@ -2550,7 +2550,7 @@
 	<string name="_sys_txt_error_occured"><![CDATA[Произошла ошибка]]></string>
 	<string name="_sys_txt_forgot_pasword"><![CDATA[Забыли пароль?]]></string>
 	<string name="_sys_txt_forgot_pasword_check_email"><![CDATA[Имейл отослан, пожалуйста, следуйте инструкциям в нём.]]></string>
-	<string name="_sys_txt_forgot_pasword_check_phone"><![CDATA[Sms отослан, подалуйста, следуйте инструкциям в нём.]]></string>
+	<string name="_sys_txt_forgot_pasword_check_phone"><![CDATA[SMS отослано, пожалуйста, следуйте инструкциям в нём.]]></string>
 	<string name="_sys_txt_forgot_pasword_desc"><![CDATA[Введите эл. адрес своего аккаунта, чтобы запросить ссылку на изменение пароля.]]></string>
 	<string name="_sys_txt_forgot_pasword_by_both_desc"><![CDATA[Введите эл. адрес или телефон своего аккаунта, чтобы запросить ссылку на изменение пароля.]]></string>
 	<string name="_sys_txt_forgot_pasword_by_phone_desc"><![CDATA[Введите телефон своего аккаунта, чтобы запросить ссылку на изменение пароля.]]></string>
@@ -2566,7 +2566,7 @@
 	<string name="_sys_txt_form_submission_error_csrf_expired"><![CDATA[Маркер устарел. Пожалуйста попробуйте снова.]]></string>
 
     <string name="_sys_txt_homepage_cover"><![CDATA[Сплоченность людей — нерушимая крепость.<br /><button class="bx-btn bx-hide-when-logged-in bx-def-margin-top" onclick="document.location='{0}'">Присоедениться!</button>]]></string>
-    <string name="_sys_txt_login_2fa_description"><![CDATA[Двухэтапная авторизация включена. В дополнении к имайлу и паролю, Вам нужно будет ввести код проверки, который мы вышлем вам в SMS.]]></string>
+    <string name="_sys_txt_login_2fa_description"><![CDATA[Двухэтапная авторизация включена. В дополнении к имейлу и паролю, Вам нужно будет ввести код проверки, который мы вышлем вам в SMS.]]></string>
 	<string name="_sys_txt_login_2fa_description2"><![CDATA[Пожалуйста, введите код проверки из SMS.]]></string>
 	<string name="_sys_txt_login_2fa_sms_text"><![CDATA[Ваш код проверки {0}.]]></string>
 	<string name="_sys_txt_login_2fa_sms_error_occured"><![CDATA[Произошла ошибка, пожалуйста, уведомите о ней администратора сайта.]]></string>

+ 2 - 2
template/scripts/BxBaseServiceAccount.php

@@ -232,7 +232,7 @@ class BxBaseServiceAccount extends BxDol
                     if ($ret === null) 
                     {
                         $oTwilio = BxDolTwilio::getInstance();
-                        if(!$oTwilio->SendSms($sPhoneNumber,  $sActivationText)){
+                        if(!$oTwilio->sendSms($sPhoneNumber,  $sActivationText)){
                             return MsgBox(_t("_sys_txt_confirm_phone_send_sms_error_occured"));
                         }
                     }
@@ -384,7 +384,7 @@ class BxBaseServiceAccount extends BxDol
                     if ($ret === null) 
                     {
                         $oTwilio = BxDolTwilio::getInstance();
-                        if($oTwilio->SendSms($sPhone,  $sSmsText))
+                        if($oTwilio->sendSms($sPhone,  $sSmsText))
                             $sResultMsg = MsgBox(_t("_sys_txt_forgot_pasword_check_phone"));
                         else
                             $sResultMsg = MsgBox(_t("_sys_txt_forgot_pasword_error_occured"));

+ 1 - 1
template/scripts/BxBaseServiceLogin.php

@@ -134,7 +134,7 @@ class BxBaseServiceLogin extends BxDol
             if ($ret === null) 
             {
                 $oTwilio = BxDolTwilio::getInstance();
-                if(!$oTwilio->SendSms($sPhoneNumber,  $sActivationText)){
+                if(!$oTwilio->sendSms($sPhoneNumber,  $sActivationText)){
                     return MsgBox(_t('_sys_txt_login_2fa_sms_error_occured'));
                 }
             }