diff --git a/docs/installation/configuration-options.md b/docs/installation/configuration-options.md index 4832174..c3b5a61 100644 --- a/docs/installation/configuration-options.md +++ b/docs/installation/configuration-options.md @@ -216,7 +216,7 @@ Configures the parameter values used on [MailFactory](../../src/User/Factory/Mai 'confirmationMailSubject' => Yii::t('usuario', 'Confirm account on {0}', $app->name), 'reconfirmationMailSubject' => Yii::t('usuario', 'Confirm email change on {0}', $app->name), 'recoveryMailSubject' => Yii::t('usuario', 'Complete password reset on {0}', $app->name), - 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication', $app->name), + 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication on {0}', $app->name), ] ``` diff --git a/docs/installation/mailer.md b/docs/installation/mailer.md index 0fc470e..0b355ef 100644 --- a/docs/installation/mailer.md +++ b/docs/installation/mailer.md @@ -14,7 +14,7 @@ values: 'confirmationMailSubject' => Yii::t('usuario', 'Confirm account on {0}', $app->name), 'reconfirmationMailSubject' => Yii::t('usuario', 'Confirm email change on {0}', $app->name), 'recoveryMailSubject' => Yii::t('usuario', 'Complete password reset on {0}', $app->name), - 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication', $app->name), + 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication on {0}', $app->name), ] ``` diff --git a/src/User/Bootstrap.php b/src/User/Bootstrap.php index e729092..478d09e 100644 --- a/src/User/Bootstrap.php +++ b/src/User/Bootstrap.php @@ -292,7 +292,7 @@ class Bootstrap implements BootstrapInterface 'confirmationMailSubject' => Yii::t('usuario', 'Confirm account on {0}', $app->name), 'reconfirmationMailSubject' => Yii::t('usuario', 'Confirm email change on {0}', $app->name), 'recoveryMailSubject' => Yii::t('usuario', 'Complete password reset on {0}', $app->name), - 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication', $app->name), + 'twoFactorMailSubject' => Yii::t('usuario', 'Code for two factor authentication on {0}', $app->name), ]; $module->mailParams = array_merge($defaults, $module->mailParams); diff --git a/src/User/Controller/SettingsController.php b/src/User/Controller/SettingsController.php index eab2fad..216d398 100644 --- a/src/User/Controller/SettingsController.php +++ b/src/User/Controller/SettingsController.php @@ -583,9 +583,9 @@ class SettingsController extends Controller $success=true; }else{ $success = $user->updateAttributes(['auth_tf_mobile_phone' => $mobilePhone]); + $success = $success && $this->make(TwoFactorSmsCodeGeneratorService::class, [$user])->run(); } - $success = $success && $this->make(TwoFactorSmsCodeGeneratorService::class, [$user])->run(); - + return [ 'success' => $success, 'message' => $success diff --git a/src/User/Service/TwoFactorSmsCodeGeneratorService.php b/src/User/Service/TwoFactorSmsCodeGeneratorService.php index 862e0c0..cda2fbb 100644 --- a/src/User/Service/TwoFactorSmsCodeGeneratorService.php +++ b/src/User/Service/TwoFactorSmsCodeGeneratorService.php @@ -66,7 +66,6 @@ class TwoFactorSmsCodeGeneratorService implements ServiceInterface $mobilePhone=$user->getAuthTfMobilePhone(); if( null===$mobilePhone || $mobilePhone=='' ){ - Yii::$app->session->addFlash('error', Yii::t('usuario','Mobile phone not found, please check your profile')); return false; } // send sms diff --git a/src/User/resources/i18n/ca/usuario.php b/src/User/resources/i18n/ca/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/ca/usuario.php +++ b/src/User/resources/i18n/ca/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/da/usuario.php b/src/User/resources/i18n/da/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/da/usuario.php +++ b/src/User/resources/i18n/da/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/de-DU/usuario.php b/src/User/resources/i18n/de-DU/usuario.php index e0b09da..19cbf9d 100644 --- a/src/User/resources/i18n/de-DU/usuario.php +++ b/src/User/resources/i18n/de-DU/usuario.php @@ -274,7 +274,7 @@ return [ '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd. MMMM YYYY, HH:mm}', '{0} cannot be blank.' => '{0} darf nicht leer sein.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/de/usuario.php b/src/User/resources/i18n/de/usuario.php index 6c37ed3..efd62fe 100644 --- a/src/User/resources/i18n/de/usuario.php +++ b/src/User/resources/i18n/de/usuario.php @@ -277,7 +277,7 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '{0, date, dd. MMM YYYY, HH:mm}', '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd. MMMM YYYY, HH:mm}', '{0} cannot be blank.' => '{0} darf nicht leer sein.', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', 'Information' => '', @@ -300,4 +300,5 @@ return [ 'Two factor authentication code by email' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/es/usuario.php b/src/User/resources/i18n/es/usuario.php index 9e348cf..924fb98 100644 --- a/src/User/resources/i18n/es/usuario.php +++ b/src/User/resources/i18n/es/usuario.php @@ -276,7 +276,7 @@ return [ 'privacy policy' => 'política de privacidad', '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd MMMM, YYYY HH:mm}', '{0} cannot be blank.' => '{0} no puede estar vacío.', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', 'Insert' => '', @@ -300,4 +300,5 @@ return [ 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/et/usuario.php b/src/User/resources/i18n/et/usuario.php index e4f63ce..4604d33 100644 --- a/src/User/resources/i18n/et/usuario.php +++ b/src/User/resources/i18n/et/usuario.php @@ -269,7 +269,7 @@ return [ '{0} cannot be blank.' => '{0} ei või olla tühi.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'Authentication rule class {0} can not be instantiated' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your two factor authentication method is based on "{0}".' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/fa-IR/usuario.php b/src/User/resources/i18n/fa-IR/usuario.php index e37eb98..f67da68 100644 --- a/src/User/resources/i18n/fa-IR/usuario.php +++ b/src/User/resources/i18n/fa-IR/usuario.php @@ -173,7 +173,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Create new permission' => '', 'Create new role' => '', 'Create new rule' => '', @@ -300,4 +300,5 @@ return [ 'privacy policy' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/fi/usuario.php b/src/User/resources/i18n/fi/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/fi/usuario.php +++ b/src/User/resources/i18n/fi/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/fr/usuario.php b/src/User/resources/i18n/fr/usuario.php index b6c1b02..0a1d042 100644 --- a/src/User/resources/i18n/fr/usuario.php +++ b/src/User/resources/i18n/fr/usuario.php @@ -273,7 +273,7 @@ return [ '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd MMMM YYYY HH:mm}', '{0} cannot be blank.' => '{0} ne peut être vide.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/hr/usuario.php b/src/User/resources/i18n/hr/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/hr/usuario.php +++ b/src/User/resources/i18n/hr/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/hu/usuario.php b/src/User/resources/i18n/hu/usuario.php index 7ef52a3..6ce037c 100644 --- a/src/User/resources/i18n/hu/usuario.php +++ b/src/User/resources/i18n/hu/usuario.php @@ -271,7 +271,7 @@ return [ '{0} cannot be blank.' => '{0} nem lehet üres.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/it/usuario.php b/src/User/resources/i18n/it/usuario.php index 0eba230..c026247 100644 --- a/src/User/resources/i18n/it/usuario.php +++ b/src/User/resources/i18n/it/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => 'Figli', 'Class' => 'Classe', 'Close' => 'Chiudi', - 'Code for two factor authentication' => 'Codice per l\'autenticazione a due fattori', + 'Code for two factor authentication on {0}' => 'Codice per l\'autenticazione a due fattori su {0}', 'Complete password reset on {0}' => 'Completa la procedura di reset della password su {0}', 'Confirm' => 'Conferma', 'Confirm account on {0}' => 'Conferma l\'account su {0}', diff --git a/src/User/resources/i18n/kk/usuario.php b/src/User/resources/i18n/kk/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/kk/usuario.php +++ b/src/User/resources/i18n/kk/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/lt/usuario.php b/src/User/resources/i18n/lt/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/lt/usuario.php +++ b/src/User/resources/i18n/lt/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/nl/usuario.php b/src/User/resources/i18n/nl/usuario.php index 4cdc751..f46c61b 100644 --- a/src/User/resources/i18n/nl/usuario.php +++ b/src/User/resources/i18n/nl/usuario.php @@ -271,7 +271,7 @@ return [ '{0} cannot be blank.' => '{0} kan niet leeg zijn.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/pl/usuario.php b/src/User/resources/i18n/pl/usuario.php index 52e3001..1b0c79d 100644 --- a/src/User/resources/i18n/pl/usuario.php +++ b/src/User/resources/i18n/pl/usuario.php @@ -271,7 +271,7 @@ return [ '{0} cannot be blank.' => '{0} nie może pozostać bez wartości', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/pt-BR/usuario.php b/src/User/resources/i18n/pt-BR/usuario.php index d5e6f4a..ccbe070 100644 --- a/src/User/resources/i18n/pt-BR/usuario.php +++ b/src/User/resources/i18n/pt-BR/usuario.php @@ -271,7 +271,7 @@ return [ '{0} cannot be blank.' => '{0} não pode estar em branco', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/pt-PT/usuario.php b/src/User/resources/i18n/pt-PT/usuario.php index 019bff5..f80e06d 100644 --- a/src/User/resources/i18n/pt-PT/usuario.php +++ b/src/User/resources/i18n/pt-PT/usuario.php @@ -262,7 +262,7 @@ return [ 'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => '', 'Children' => '', 'Class' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Email' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', @@ -300,4 +300,5 @@ return [ 'Your two factor authentication method is based on "{0}".' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/ro/usuario.php b/src/User/resources/i18n/ro/usuario.php index 9638b12..0e48773 100644 --- a/src/User/resources/i18n/ro/usuario.php +++ b/src/User/resources/i18n/ro/usuario.php @@ -271,7 +271,7 @@ return [ '{0} cannot be blank.' => '{0} nu poate fi gol.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/ru/usuario.php b/src/User/resources/i18n/ru/usuario.php index b1c8bde..df904f6 100644 --- a/src/User/resources/i18n/ru/usuario.php +++ b/src/User/resources/i18n/ru/usuario.php @@ -274,7 +274,7 @@ return [ '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, d MMMM YYYY в HH:mm}', '{0} cannot be blank.' => '{0} не может быть пустым.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -300,4 +300,5 @@ return [ 'Your consent is required to work with this site' => '', 'Your role requires 2FA, you won\'t be able to use the application until you enable it' => '', 'Your two factor authentication method is based on "{0}".' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/th/usuario.php b/src/User/resources/i18n/th/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/th/usuario.php +++ b/src/User/resources/i18n/th/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/tr-TR/usuario.php b/src/User/resources/i18n/tr-TR/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/tr-TR/usuario.php +++ b/src/User/resources/i18n/tr-TR/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/uk/usuario.php b/src/User/resources/i18n/uk/usuario.php index 34237da..b1f63cf 100644 --- a/src/User/resources/i18n/uk/usuario.php +++ b/src/User/resources/i18n/uk/usuario.php @@ -273,7 +273,7 @@ return [ '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, MMMM dd, YYYY HH:mm}', '{0} cannot be blank.' => '{0} не може бути порожнім.', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Data privacy' => '', 'Error while enabling SMS two factor authentication. Please reload the page.' => '', 'Google Authenticator' => '', @@ -304,6 +304,7 @@ return [ 'An email has been sent with instructions for resetting your password' => '@@Лист з інструкціями по зміні пароля надіслано на електронну адресу@@', 'Awesome, almost there. ' => '@@Чудово, майже все.@@', 'Class "{0}" does not exist' => '@@Клас "{0}" не існує@@', + 'Code for two factor authentication' => '@@@@', 'Disable Two-Factor Auth' => '@@Вимкнути двофакторну аутентифікацію@@', 'Enable Two-factor auth' => '@@Увімкнути двофакторну аутентифікацію@@', 'Every user having your role has two factor authentication mandatory, you must enable it' => '@@@@', diff --git a/src/User/resources/i18n/vi/usuario.php b/src/User/resources/i18n/vi/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/vi/usuario.php +++ b/src/User/resources/i18n/vi/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ]; diff --git a/src/User/resources/i18n/zh-CN/usuario.php b/src/User/resources/i18n/zh-CN/usuario.php index 34821ab..a76ca29 100644 --- a/src/User/resources/i18n/zh-CN/usuario.php +++ b/src/User/resources/i18n/zh-CN/usuario.php @@ -63,7 +63,7 @@ return [ 'Children' => '', 'Class' => '', 'Close' => '', - 'Code for two factor authentication' => '', + 'Code for two factor authentication on {0}' => '', 'Complete password reset on {0}' => '', 'Confirm' => '', 'Confirm account on {0}' => '', @@ -300,4 +300,5 @@ return [ '{0, date, MMM dd, YYYY HH:mm}' => '', '{0, date, MMMM dd, YYYY HH:mm}' => '', '{0} cannot be blank.' => '', + 'Code for two factor authentication' => '@@@@', ];