Merge remote-tracking branch 'upstream/master' into password_expiration

This commit is contained in:
Lorenzo Milesi
2018-01-30 22:16:03 +01:00
81 changed files with 917 additions and 538 deletions

View File

@ -1,8 +1,20 @@
# CHANGELOG # CHANGELOG
## 1.1.1 - Work in progress ## 1.1.2 - Work in progress
- Bug #125: Fix validation in non-ajax requests (faenir)
- Bug #122: Fix wrong email message for email address change (liviuk2)
## 1.1.1 - November 27, 2017
- Bug #115: Convert client_id to string because pgsql fail with type convertion (Dezinger)
- Bug #119: Security fix: add AccessControl to RuleController (Dezinger)
- Enh #120: 2FA i18n russian translation (Dezinger)
- Bug #111: Fix migration for PostgreSQL DBMS (MKiselev)
- Bug #106: Correct exception value returned in `MailEvent::getException` (kartik-v)
- Enh #99: Added German translation (jkmssoft) - Enh #99: Added German translation (jkmssoft)
- Enh #100: Added pt-BR translation (gugoan) - Enh #100: Added pt-BR translation (gugoan)
- Enh #105: Consolidate 2fa messages (maxxer)
- Fix #108: Use main logger app (tonydspaniard)
- Enh #109: Make use of better classes names (tonydspaniard)
## 1.1.0 - October 22, 2017 ## 1.1.0 - October 22, 2017
- Enh #91: Documentation for Mail events (kartik-v) - Enh #91: Documentation for Mail events (kartik-v)

View File

@ -1,18 +1,18 @@
How to Implement Two-Factor Auth How to Implement Two Factor Auth (2FA)
================================ ======================================
Two-Factor Authentication products add an additional layer of security. Typically, users are asked to prove their Two Factor Authentication products add an additional layer of security. Typically, users are asked to prove their
identity by providing simple credentials such as an email address and a password. A second factor (2F) adds an extra identity by providing simple credentials such as an email address and a password. A second factor (2F) adds an extra
layer of unauthorized access protection by prompting the user to provide an additional means of authentication such as layer of unauthorized access protection by prompting the user to provide an additional means of authentication such as
a physical token (e.g. a card) or an additional secret that only they know. a physical token (e.g. a card) or an additional secret that only they know.
With this module is quite easy. It basically implements two-factor authentication using the following 2amigos libraries: With this module is quite easy. It basically implements two factor authentication using the following 2amigos libraries:
- [2amigos/2fa-library](https://github.com/2amigos/2fa-library) - [2amigos/2fa-library](https://github.com/2amigos/2fa-library)
- [2amigos/qrcode-library](https://github.com/2amigos/qrcode-library) - [2amigos/qrcode-library](https://github.com/2amigos/qrcode-library)
Enable Two-Factor Enable Two Factor
----------------- -----------------
We simply need to enable two factor authentication: We simply need to enable two factor authentication:
@ -26,7 +26,7 @@ We simply need to enable two factor authentication:
] ]
``` ```
Now, when the user go to its settings via `user/settings`, it will display the option to enable two-factor Now, when the user go to its settings via `user/settings`, it will display the option to enable two factor
authentication or not. authentication or not.
When enabled, the module will show a modal with a QrCode that has to be scanned by the Google Authenticator App When enabled, the module will show a modal with a QrCode that has to be scanned by the Google Authenticator App
@ -35,15 +35,15 @@ When enabled, the module will show a modal with a QrCode that has to be scanned
[iTunes](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)). [iTunes](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)).
The application will display a code that needs to be inserted into the modal input box. If code verification goes well, The application will display a code that needs to be inserted into the modal input box. If code verification goes well,
it will enable the two-factor for the user. it will enable the two factor for the user.
If a user has enabled the two-factor, and after successfully login via username and email, it will render a new section If a user has enabled the two factor, and after successfully login via username and email, it will render a new section
where user will have to enter the code displayed on its Google Authenticator App in order to complete with the login where user will have to enter the code displayed on its Google Authenticator App in order to complete with the login
process. process.
### Recommended Reading ### Recommended Reading
- [2amigos Two-Factor Library Docs]()http://2fa-library.readthedocs.io/en/latest/) - [2amigos Two Factor Library Docs]()http://2fa-library.readthedocs.io/en/latest/)
© [2amigos](http://www.2amigos.us/) 2013-2017 © [2amigos](http://www.2amigos.us/) 2013-2017

View File

@ -31,7 +31,7 @@ After you need to configure the `authClientCollection::clients` on your Applicat
'facebook' => [ 'facebook' => [
'class' => 'Da\User\AuthClient\Facebook', 'class' => 'Da\User\AuthClient\Facebook',
'clientId' => 'facebook_client_id', 'clientId' => 'facebook_client_id',
'clientScret' => 'facebook_client_secret' 'clientSecret' => 'facebook_client_secret'
] ]
] ]
] ]

View File

@ -20,6 +20,7 @@ use yii\authclient\Collection;
use yii\base\Application; use yii\base\Application;
use yii\base\BootstrapInterface; use yii\base\BootstrapInterface;
use yii\base\Exception; use yii\base\Exception;
use yii\base\InvalidConfigException;
use yii\console\Application as ConsoleApplication; use yii\console\Application as ConsoleApplication;
use yii\i18n\PhpMessageSource; use yii\i18n\PhpMessageSource;
use yii\web\Application as WebApplication; use yii\web\Application as WebApplication;
@ -36,6 +37,8 @@ class Bootstrap implements BootstrapInterface
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidConfigException
*/ */
public function bootstrap($app) public function bootstrap($app)
{ {
@ -178,6 +181,8 @@ class Bootstrap implements BootstrapInterface
* Registers module translation messages. * Registers module translation messages.
* *
* @param Application $app * @param Application $app
*
* @throws InvalidConfigException
*/ */
protected function initTranslations(Application $app) protected function initTranslations(Application $app)
{ {
@ -194,6 +199,8 @@ class Bootstrap implements BootstrapInterface
* Ensures the auth manager is the one provided by the library. * Ensures the auth manager is the one provided by the library.
* *
* @param Application $app * @param Application $app
*
* @throws InvalidConfigException
*/ */
protected function initAuthManager(Application $app) protected function initAuthManager(Application $app)
{ {
@ -211,6 +218,8 @@ class Bootstrap implements BootstrapInterface
* Initializes web url routes (rules in Yii2). * Initializes web url routes (rules in Yii2).
* *
* @param WebApplication $app * @param WebApplication $app
*
* @throws InvalidConfigException
*/ */
protected function initUrlRoutes(WebApplication $app) protected function initUrlRoutes(WebApplication $app)
{ {
@ -253,6 +262,8 @@ class Bootstrap implements BootstrapInterface
* Ensures the authCollection component is configured. * Ensures the authCollection component is configured.
* *
* @param WebApplication $app * @param WebApplication $app
*
* @throws InvalidConfigException
*/ */
protected function initAuthCollection(WebApplication $app) protected function initAuthCollection(WebApplication $app)
{ {
@ -287,6 +298,7 @@ class Bootstrap implements BootstrapInterface
* *
* @param array $userClassMap user configuration on the module * @param array $userClassMap user configuration on the module
* *
* @throws Exception
* @return array * @return array
*/ */
protected function buildClassMap(array $userClassMap) protected function buildClassMap(array $userClassMap)
@ -360,7 +372,7 @@ class Bootstrap implements BootstrapInterface
protected function getRoute(array $routes, $name) protected function getRoute(array $routes, $name)
{ {
foreach ($routes as $route => $names) { foreach ($routes as $route => $names) {
if (in_array($name, $names)) { if (in_array($name, $names, false)) {
return $route; return $route;
} }
} }

View File

@ -68,7 +68,6 @@ class AuthDbManagerComponent extends DbManager implements AuthManagerInterface
$roles = []; $roles = [];
foreach ($query->all($this->db) as $row) { foreach ($query->all($this->db) as $row) {
$roles[$row['name']] = $this->populateItem($row); $roles[$row['name']] = $this->populateItem($row);
$roles[$row['name']] = $this->populateItem($row);
} }
return $roles; return $roles;

View File

@ -29,6 +29,8 @@ class ReCaptchaComponent extends Component
/** /**
* @inheritdoc * @inheritdoc
*
* @throws InvalidConfigException
*/ */
public function init() public function init()
{ {

View File

@ -131,7 +131,7 @@ class AdminController extends Controller
$this->make(AjaxRequestModelValidator::class, [$user])->validate(); $this->make(AjaxRequestModelValidator::class, [$user])->validate();
if ($user->load(Yii::$app->request->post())) { if ($user->load(Yii::$app->request->post()) && $user->validate()) {
$this->trigger(UserEvent::EVENT_BEFORE_CREATE, $event); $this->trigger(UserEvent::EVENT_BEFORE_CREATE, $event);
$mailService = MailFactory::makeWelcomeMailerService($user); $mailService = MailFactory::makeWelcomeMailerService($user);
@ -140,9 +140,8 @@ class AdminController extends Controller
Yii::$app->getSession()->setFlash('success', Yii::t('usuario', 'User has been created')); Yii::$app->getSession()->setFlash('success', Yii::t('usuario', 'User has been created'));
$this->trigger(UserEvent::EVENT_AFTER_CREATE, $event); $this->trigger(UserEvent::EVENT_AFTER_CREATE, $event);
return $this->redirect(['update', 'id' => $user->id]); return $this->redirect(['update', 'id' => $user->id]);
} else {
Yii::$app->session->setFlash('danger', Yii::t('usuario', 'User account could not be created.'));
} }
Yii::$app->session->setFlash('danger', Yii::t('usuario', 'User account could not be created.'));
} }
return $this->render('create', ['user' => $user]); return $this->render('create', ['user' => $user]);

View File

@ -35,6 +35,8 @@ class PermissionController extends AbstractAuthItemController
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws NotFoundHttpException
*/ */
protected function getItem($name) protected function getItem($name)
{ {

View File

@ -24,6 +24,8 @@ use Da\User\Service\ResetPasswordService;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Validator\AjaxRequestModelValidator; use Da\User\Validator\AjaxRequestModelValidator;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\filters\AccessControl; use yii\filters\AccessControl;
use yii\web\Controller; use yii\web\Controller;
use yii\web\NotFoundHttpException; use yii\web\NotFoundHttpException;
@ -74,6 +76,8 @@ class RecoveryController extends Controller
* Displays / handles user password recovery request. * Displays / handles user password recovery request.
* *
* @throws NotFoundHttpException * @throws NotFoundHttpException
* @throws InvalidConfigException
* @throws InvalidParamException
* @return string * @return string
* *
*/ */
@ -90,7 +94,7 @@ class RecoveryController extends Controller
$this->make(AjaxRequestModelValidator::class, [$form])->validate(); $this->make(AjaxRequestModelValidator::class, [$form])->validate();
if ($form->load(Yii::$app->request->post())) { if ($form->load(Yii::$app->request->post()) && $form->validate()) {
$this->trigger(FormEvent::EVENT_BEFORE_REQUEST, $event); $this->trigger(FormEvent::EVENT_BEFORE_REQUEST, $event);
$mailService = MailFactory::makeRecoveryMailerService($form->email); $mailService = MailFactory::makeRecoveryMailerService($form->email);
@ -118,6 +122,8 @@ class RecoveryController extends Controller
* @param $code * @param $code
* *
* @throws NotFoundHttpException * @throws NotFoundHttpException
* @throws InvalidConfigException
* @throws InvalidParamException
* @return string * @return string
* *
*/ */

View File

@ -121,9 +121,8 @@ class RegistrationController extends Controller
'module' => $this->module, 'module' => $this->module,
] ]
); );
} else {
Yii::$app->session->setFlash('danger', Yii::t('usuario', 'User could not be registered.'));
} }
Yii::$app->session->setFlash('danger', Yii::t('usuario', 'User could not be registered.'));
} }
return $this->render('register', ['model' => $form, 'module' => $this->module]); return $this->render('register', ['model' => $form, 'module' => $this->module]);
} }
@ -146,7 +145,7 @@ class RegistrationController extends Controller
$this->make(AjaxRequestModelValidator::class, [$user])->validate(); $this->make(AjaxRequestModelValidator::class, [$user])->validate();
if ($user->load(Yii::$app->request->post())) { if ($user->load(Yii::$app->request->post()) && $user->validate()) {
$this->trigger(SocialNetworkConnectEvent::EVENT_BEFORE_CONNECT, $event); $this->trigger(SocialNetworkConnectEvent::EVENT_BEFORE_CONNECT, $event);
$mailService = MailFactory::makeWelcomeMailerService($user); $mailService = MailFactory::makeWelcomeMailerService($user);

View File

@ -35,6 +35,8 @@ class RoleController extends AbstractAuthItemController
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws NotFoundHttpException
*/ */
protected function getItem($name) protected function getItem($name)
{ {

View File

@ -17,10 +17,12 @@ use Da\User\Service\AuthRuleEditionService;
use Da\User\Traits\AuthManagerAwareTrait; use Da\User\Traits\AuthManagerAwareTrait;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Validator\AjaxRequestModelValidator; use Da\User\Validator\AjaxRequestModelValidator;
use Da\User\Filter\AccessRuleFilter;
use Yii; use Yii;
use yii\filters\VerbFilter; use yii\filters\VerbFilter;
use yii\web\Controller; use yii\web\Controller;
use yii\web\NotFoundHttpException; use yii\web\NotFoundHttpException;
use yii\filters\AccessControl;
class RuleController extends Controller class RuleController extends Controller
{ {
@ -33,12 +35,24 @@ class RuleController extends Controller
public function behaviors() public function behaviors()
{ {
return [ return [
[ 'verbs' => [
'class' => VerbFilter::className(), 'class' => VerbFilter::className(),
'actions' => [ 'actions' => [
'delete' => ['POST'], 'delete' => ['POST'],
], ],
] ],
'access' => [
'class' => AccessControl::className(),
'ruleConfig' => [
'class' => AccessRuleFilter::className(),
],
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
],
],
],
]; ];
} }

View File

@ -21,6 +21,8 @@ use Da\User\Service\SocialNetworkAuthenticateService;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Yii; use Yii;
use yii\authclient\AuthAction; use yii\authclient\AuthAction;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\base\Module; use yii\base\Module;
use yii\filters\AccessControl; use yii\filters\AccessControl;
use yii\filters\VerbFilter; use yii\filters\VerbFilter;
@ -102,6 +104,8 @@ class SecurityController extends Controller
/** /**
* Controller action responsible for handling login page and actions. * Controller action responsible for handling login page and actions.
* *
* @throws InvalidConfigException
* @throws InvalidParamException
* @return array|string|Response * @return array|string|Response
*/ */
public function actionLogin() public function actionLogin()

View File

@ -179,7 +179,7 @@ class SettingsController extends Controller
{ {
$user = $this->userQuery->whereId($id)->one(); $user = $this->userQuery->whereId($id)->one();
if ($user === null || $this->module->emailChangeStrategy == MailChangeStrategyInterface::TYPE_INSECURE) { if ($user === null || MailChangeStrategyInterface::TYPE_INSECURE === $this->module->emailChangeStrategy) {
throw new NotFoundHttpException(); throw new NotFoundHttpException();
} }
$event = $this->make(UserEvent::class, [$user]); $event = $this->make(UserEvent::class, [$user]);
@ -210,7 +210,7 @@ class SettingsController extends Controller
if ($account === null) { if ($account === null) {
throw new NotFoundHttpException(); throw new NotFoundHttpException();
} }
if ($account->user_id != Yii::$app->user->id) { if ($account->user_id !== Yii::$app->user->id) {
throw new ForbiddenHttpException(); throw new ForbiddenHttpException();
} }
$event = $this->make(SocialNetworkConnectEvent::class, [Yii::$app->user->identity, $account]); $event = $this->make(SocialNetworkConnectEvent::class, [Yii::$app->user->identity, $account]);
@ -280,7 +280,7 @@ class SettingsController extends Controller
return [ return [
'success' => $success, 'success' => $success,
'message' => $success 'message' => $success
? Yii::t('usuario', 'Two factor successfully enabled.') ? Yii::t('usuario', 'Two factor authentication successfully enabled.')
: Yii::t('usuario', 'Verification failed. Please, enter new code.') : Yii::t('usuario', 'Verification failed. Please, enter new code.')
]; ];
} }
@ -297,11 +297,11 @@ class SettingsController extends Controller
if ($user->updateAttributes(['auth_tf_enabled' => '0'])) { if ($user->updateAttributes(['auth_tf_enabled' => '0'])) {
Yii::$app Yii::$app
->getSession() ->getSession()
->setFlash('success', Yii::t('usuario', 'Two-factor authorization has been disabled.')); ->setFlash('success', Yii::t('usuario', 'Two factor authentication has been disabled.'));
} else { } else {
Yii::$app Yii::$app
->getSession() ->getSession()
->setFlash('danger', Yii::t('usuario', 'Unable to disable two-factor authorization.')); ->setFlash('danger', Yii::t('usuario', 'Unable to disable Two factor authentication.'));
} }
$this->redirect(['account']); $this->redirect(['account']);

View File

@ -15,11 +15,6 @@ use Da\User\Model\User;
use Da\User\Service\MailService; use Da\User\Service\MailService;
use yii\base\Event; use yii\base\Event;
/**
* Mailer event to trap and handle mail exceptions for user model actions
*
* @author Kartik Visweswaran <kartikv2@gmail.com>
*/
class MailEvent extends Event class MailEvent extends Event
{ {
const TYPE_WELCOME = 'welcome'; const TYPE_WELCOME = 'welcome';
@ -62,6 +57,6 @@ class MailEvent extends Event
public function getException() public function getException()
{ {
return $this->mailService; return $this->exception;
} }
} }

View File

@ -22,7 +22,7 @@ class ProfileEvent extends Event
{ {
$this->profile = $profile; $this->profile = $profile;
return parent::__construct($config); parent::__construct($config);
} }
public function getProfile() public function getProfile()

View File

@ -18,6 +18,7 @@ use Da\User\Strategy\InsecureEmailChangeStrategy;
use Da\User\Strategy\SecureEmailChangeStrategy; use Da\User\Strategy\SecureEmailChangeStrategy;
use Exception; use Exception;
use Yii; use Yii;
use yii\base\InvalidParamException;
class EmailChangeStrategyFactory class EmailChangeStrategyFactory
{ {
@ -41,7 +42,7 @@ class EmailChangeStrategyFactory
return Yii::$container->get(static::$map[$strategy], [$form]); return Yii::$container->get(static::$map[$strategy], [$form]);
} }
throw new Exception('Unknown strategy type'); throw new InvalidParamException('Unknown strategy type');
} }
/** /**

View File

@ -17,19 +17,15 @@ use Da\User\Model\User;
use Da\User\Module; use Da\User\Module;
use Da\User\Service\MailService; use Da\User\Service\MailService;
use Yii; use Yii;
use yii\base\InvalidConfigException;
/**
* Class MailFactory
*
* @package Da\User\Factory
* @modified 2017-10-18 by Kartik Visweswaran <kartikv2@gmail.com>
*/
class MailFactory class MailFactory
{ {
/** /**
* @param User $user * @param User $user
* @param bool $showPassword * @param bool $showPassword
* *
* @throws InvalidConfigException
* @return MailService * @return MailService
*/ */
public static function makeWelcomeMailerService(User $user, $showPassword = false) public static function makeWelcomeMailerService(User $user, $showPassword = false)
@ -53,6 +49,7 @@ class MailFactory
* @param string $email * @param string $email
* @param Token $token * @param Token $token
* *
* @throws InvalidConfigException
* @return MailService * @return MailService
*/ */
public static function makeRecoveryMailerService($email, Token $token = null) public static function makeRecoveryMailerService($email, Token $token = null)
@ -74,6 +71,7 @@ class MailFactory
* @param User $user * @param User $user
* @param Token|null $token * @param Token|null $token
* *
* @throws InvalidConfigException
* @return MailService * @return MailService
*/ */
public static function makeConfirmationMailerService(User $user, Token $token = null) public static function makeConfirmationMailerService(User $user, Token $token = null)
@ -95,6 +93,7 @@ class MailFactory
* @param User $user * @param User $user
* @param Token $token * @param Token $token
* *
* @throws InvalidConfigException
* @return MailService * @return MailService
*/ */
public static function makeReconfirmationMailerService(User $user, Token $token) public static function makeReconfirmationMailerService(User $user, Token $token)
@ -112,7 +111,7 @@ class MailFactory
'token' => $token, 'token' => $token,
]; ];
return static::makeMailerService(MailEvent::TYPE_RECONFIRM, $from, $to, $subject, 'recovery', $params); return static::makeMailerService(MailEvent::TYPE_RECONFIRM, $from, $to, $subject, 'reconfirmation', $params);
} }
/** /**
@ -125,7 +124,9 @@ class MailFactory
* @param string $view * @param string $view
* @param array $params * @param array $params
* *
* @throws InvalidConfigException
* @return MailService * @return MailService
*
*/ */
public static function makeMailerService($type, $from, $to, $subject, $view, $params = []) public static function makeMailerService($type, $from, $to, $subject, $view, $params = [])
{ {

View File

@ -13,12 +13,14 @@ namespace Da\User\Factory;
use Da\User\Model\Token; use Da\User\Model\Token;
use Yii; use Yii;
use yii\base\InvalidConfigException;
class TokenFactory class TokenFactory
{ {
/** /**
* @param $userId * @param $userId
* *
* @throws InvalidConfigException
* @return Token * @return Token
*/ */
public static function makeConfirmationToken($userId) public static function makeConfirmationToken($userId)
@ -47,6 +49,7 @@ class TokenFactory
/** /**
* @param $userId * @param $userId
* *
* @throws InvalidConfigException
* @return Token * @return Token
*/ */
public static function makeConfirmOldMailToken($userId) public static function makeConfirmOldMailToken($userId)
@ -61,6 +64,7 @@ class TokenFactory
/** /**
* @param $userId * @param $userId
* *
* @throws InvalidConfigException
* @return Token * @return Token
*/ */
public static function makeRecoveryToken($userId) public static function makeRecoveryToken($userId)
@ -76,7 +80,8 @@ class TokenFactory
* @param $userId * @param $userId
* @param $type * @param $type
* *
* @return Token * @throws InvalidConfigException
* @return Token|\object
*/ */
protected static function make($userId, $type) protected static function make($userId, $type)
{ {

View File

@ -43,9 +43,10 @@ class AccessRuleFilter extends AccessRule
return true; return true;
} }
} else { } else {
if (!isset($roleParams)) { $roleParams = $this->roleParams instanceof Closure
$roleParams = $this->roleParams instanceof Closure ? call_user_func($this->roleParams, $this) : $this->roleParams; ? call_user_func($this->roleParams, $this)
} : $this->roleParams;
if ($user->can($role, $roleParams)) { if ($user->can($role, $roleParams)) {
return true; return true;
} }

View File

@ -11,12 +11,14 @@
namespace Da\User\Form; namespace Da\User\Form;
use Da\TwoFA\Exception\InvalidSecretKeyException;
use Da\User\Helper\SecurityHelper; use Da\User\Helper\SecurityHelper;
use Da\User\Model\User; use Da\User\Model\User;
use Da\User\Query\UserQuery; use Da\User\Query\UserQuery;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use Da\User\Validator\TwoFactorCodeValidator; use Da\User\Validator\TwoFactorCodeValidator;
use Yii; use Yii;
use yii\base\InvalidParamException;
use yii\base\Model; use yii\base\Model;
class LoginForm extends Model class LoginForm extends Model
@ -73,12 +75,14 @@ class LoginForm extends Model
'login' => Yii::t('usuario', 'Login'), 'login' => Yii::t('usuario', 'Login'),
'password' => Yii::t('usuario', 'Password'), 'password' => Yii::t('usuario', 'Password'),
'rememberMe' => Yii::t('usuario', 'Remember me next time'), 'rememberMe' => Yii::t('usuario', 'Remember me next time'),
'twoFactorAuthenticationCode' => Yii::t('usuario', 'Two-factor authentication code') 'twoFactorAuthenticationCode' => Yii::t('usuario', 'Two factor authentication code')
]; ];
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidSecretKeyException
*/ */
public function rules() public function rules()
{ {
@ -111,7 +115,7 @@ class LoginForm extends Model
$this->module->twoFactorAuthenticationCycles $this->module->twoFactorAuthenticationCycles
)) ))
->validate()) { ->validate()) {
$this->addError($attribute, Yii::t('usuario', 'Invalid two-factor code')); $this->addError($attribute, Yii::t('usuario', 'Invalid two factor authentication code'));
} }
} }
], ],
@ -137,6 +141,7 @@ class LoginForm extends Model
/** /**
* Validates form and logs the user in. * Validates form and logs the user in.
* *
* @throws InvalidParamException
* @return bool whether the user is logged in successfully * @return bool whether the user is logged in successfully
*/ */
public function login() public function login()

View File

@ -37,6 +37,8 @@ class RegistrationForm extends Model
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws \Exception
*/ */
public function rules() public function rules()
{ {

View File

@ -17,7 +17,10 @@ use Da\User\Model\User;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\base\Model; use yii\base\Model;
use yii\helpers\ArrayHelper;
class SettingsForm extends Model class SettingsForm extends Model
{ {
@ -48,18 +51,30 @@ class SettingsForm extends Model
/** @var User */ /** @var User */
protected $user; protected $user;
/**
* SettingsForm constructor.
*
* @param SecurityHelper $securityHelper
* @param array $config
*/
public function __construct(SecurityHelper $securityHelper, array $config = []) public function __construct(SecurityHelper $securityHelper, array $config = [])
{ {
$this->securityHelper = $securityHelper; $this->securityHelper = $securityHelper;
$config = [ $config = ArrayHelper::merge(
[
'username' => $this->getUser()->username, 'username' => $this->getUser()->username,
'email' => $this->getUser()->unconfirmed_email? : $this->getUser()->email 'email' => $this->getUser()->unconfirmed_email ?: $this->getUser()->email
]; ],
$config
);
parent::__construct($config); parent::__construct($config);
} }
/** /**
* @throws InvalidConfigException
* @throws InvalidParamException
* @return array * @return array
*
*/ */
public function rules() public function rules()
{ {
@ -75,7 +90,7 @@ class SettingsForm extends Model
['email', 'username'], ['email', 'username'],
'unique', 'unique',
'when' => function ($model, $attribute) { 'when' => function ($model, $attribute) {
return $this->getUser()->$attribute != $model->$attribute; return $this->getUser()->$attribute !== $model->$attribute;
}, },
'targetClass' => $this->getClassMap()->get(User::class), 'targetClass' => $this->getClassMap()->get(User::class),
], ],
@ -110,7 +125,7 @@ class SettingsForm extends Model
*/ */
public function getUser() public function getUser()
{ {
if ($this->user == null) { if (null === $this->user) {
$this->user = Yii::$app->user->identity; $this->user = Yii::$app->user->identity;
} }
@ -120,7 +135,9 @@ class SettingsForm extends Model
/** /**
* Saves new account settings. * Saves new account settings.
* *
* @throws \Exception
* @return bool * @return bool
*
*/ */
public function save() public function save()
{ {
@ -130,9 +147,9 @@ class SettingsForm extends Model
$user->scenario = 'settings'; $user->scenario = 'settings';
$user->username = $this->username; $user->username = $this->username;
$user->password = $this->new_password; $user->password = $this->new_password;
if ($this->email == $user->email && $user->unconfirmed_email != null) { if ($this->email === $user->email && $user->unconfirmed_email !== null) {
$user->unconfirmed_email = null; $user->unconfirmed_email = null;
} elseif ($this->email != $user->email) { } elseif ($this->email !== $user->email) {
$strategy = EmailChangeStrategyFactory::makeByStrategyType( $strategy = EmailChangeStrategyFactory::makeByStrategyType(
$this->getModule()->emailChangeStrategy, $this->getModule()->emailChangeStrategy,
$this $this

View File

@ -56,7 +56,7 @@ class AuthHelper
? Yii::$app->getUser()->can($module->administratorPermissionName) ? Yii::$app->getUser()->can($module->administratorPermissionName)
: false; : false;
return $hasAdministratorPermissionName || in_array($username, $module->administrators); return $hasAdministratorPermissionName || in_array($username, $module->administrators, false);
} }
/** /**
@ -99,7 +99,7 @@ class AuthHelper
public function getUnassignedItems(AbstractAuthItem $model) public function getUnassignedItems(AbstractAuthItem $model)
{ {
$excludeItems = $model->item !== null ? [$model->item->name] : []; $excludeItems = $model->item !== null ? [$model->item->name] : [];
$type = $model->getType() == Permission::TYPE_PERMISSION ? Permission::TYPE_PERMISSION : null; $type = $model->getType() === Permission::TYPE_PERMISSION ? Permission::TYPE_PERMISSION : null;
$items = $this->getAuthManager()->getItems($type, $excludeItems); $items = $this->getAuthManager()->getItems($type, $excludeItems);
return ArrayHelper::map( return ArrayHelper::map(

View File

@ -11,14 +11,8 @@
namespace Da\User\Helper; namespace Da\User\Helper;
/** use yii\base\InvalidParamException;
* ModelMapHelper.php.
*
* Date: 3/12/16
* Time: 18:10
*
* @author Antonio Ramirez <hola@2amigos.us>
*/
class ClassMapHelper class ClassMapHelper
{ {
protected $map = []; protected $map = [];
@ -45,7 +39,7 @@ class ClassMapHelper
/** /**
* @param $key * @param $key
* *
* @throws \Exception * @throws InvalidParamException
* @return mixed * @return mixed
* *
*/ */
@ -54,6 +48,6 @@ class ClassMapHelper
if (array_key_exists($key, $this->map)) { if (array_key_exists($key, $this->map)) {
return $this->map[$key]; return $this->map[$key];
} }
throw new \Exception('Unknown model map key: ' . $key); throw new InvalidParamException('Unknown model map key: ' . $key);
} }
} }

View File

@ -18,7 +18,9 @@ class MigrationHelper
/** /**
* @param string $driverName * @param string $driverName
* *
* @throws RuntimeException
* @return null|string * @return null|string
*
*/ */
public static function resolveTableOptions($driverName) public static function resolveTableOptions($driverName)
{ {
@ -38,7 +40,9 @@ class MigrationHelper
/** /**
* @param $driverName * @param $driverName
* *
* @throws RuntimeException
* @return string * @return string
*
*/ */
public static function resolveDbType($driverName) public static function resolveDbType($driverName)
{ {
@ -59,10 +63,12 @@ class MigrationHelper
/** /**
* @param string $driverName * @param string $driverName
* *
* @throws RuntimeException
* @return bool * @return bool
*
*/ */
public static function isMicrosoftSQLServer($driverName) public static function isMicrosoftSQLServer($driverName)
{ {
return self::resolveDbType($driverName) == 'sqlsrv'; return self::resolveDbType($driverName) === 'sqlsrv';
} }
} }

View File

@ -11,6 +11,7 @@
namespace Da\User\Helper; namespace Da\User\Helper;
use yii\base\Exception;
use yii\base\Security; use yii\base\Security;
class SecurityHelper class SecurityHelper
@ -31,13 +32,24 @@ class SecurityHelper
* @param string $password * @param string $password
* @param null|int $cost * @param null|int $cost
* *
* @throws Exception
* @return string * @return string
*
*/ */
public function generatePasswordHash($password, $cost = null) public function generatePasswordHash($password, $cost = null)
{ {
return $this->security->generatePasswordHash($password, $cost); return $this->security->generatePasswordHash($password, $cost);
} }
/**
* Generates a random string
*
* @param int $length
*
* @throws Exception
* @return string
*
*/
public function generateRandomString($length = 32) public function generateRandomString($length = 32)
{ {
return $this->security->generateRandomString($length); return $this->security->generateRandomString($length);

View File

@ -13,6 +13,7 @@ namespace Da\User\Helper;
use DateTime; use DateTime;
use DateTimeZone; use DateTimeZone;
use yii\base\InvalidParamException;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
class TimezoneHelper class TimezoneHelper
@ -20,7 +21,9 @@ class TimezoneHelper
/** /**
* Get all of the time zones with the offsets sorted by their offset. * Get all of the time zones with the offsets sorted by their offset.
* *
* @throws InvalidParamException
* @return array * @return array
*
*/ */
public static function getAll() public static function getAll()
{ {

View File

@ -18,7 +18,7 @@ class m000000_000006_add_two_factor_fields extends Migration
public function safeUp() public function safeUp()
{ {
$this->addColumn('{{%user}}', 'auth_tf_key', $this->string(16)); $this->addColumn('{{%user}}', 'auth_tf_key', $this->string(16));
$this->addColumn('{{%user}}', 'auth_tf_enabled', $this->boolean()->defaultValue(0)); $this->addColumn('{{%user}}', 'auth_tf_enabled', $this->boolean()->defaultValue(false));
} }
public function safeDown() public function safeDown()

View File

@ -108,7 +108,7 @@ abstract class AbstractAuthItem extends Model
} }
}, },
'when' => function () { 'when' => function () {
return $this->scenario == 'create' || $this->item->name != $this->name; return $this->scenario === 'create' || $this->item->name !== $this->name;
}, },
], ],
['children', RbacItemsValidator::class], ['children', RbacItemsValidator::class],

View File

@ -20,6 +20,8 @@ use DateTime;
use DateTimeZone; use DateTimeZone;
use Exception; use Exception;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
/** /**
@ -41,6 +43,9 @@ class Profile extends ActiveRecord
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidParamException
* @throws InvalidConfigException
*/ */
public function beforeSave($insert) public function beforeSave($insert)
{ {
@ -64,6 +69,8 @@ class Profile extends ActiveRecord
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidConfigException
*/ */
public function rules() public function rules()
{ {
@ -122,6 +129,8 @@ class Profile extends ActiveRecord
* Set the User's timezone. * Set the User's timezone.
* *
* @param DateTimeZone $timezone * @param DateTimeZone $timezone
*
* @throws InvalidParamException
*/ */
public function setTimeZone(DateTimeZone $timezone) public function setTimeZone(DateTimeZone $timezone)
{ {
@ -141,6 +150,7 @@ class Profile extends ActiveRecord
} }
/** /**
* @throws InvalidConfigException
* @return \yii\db\ActiveQuery * @return \yii\db\ActiveQuery
*/ */
public function getUser() public function getUser()
@ -151,6 +161,7 @@ class Profile extends ActiveRecord
/** /**
* @param int $size * @param int $size
* *
* @throws InvalidConfigException
* @return mixed * @return mixed
*/ */
public function getAvatarUrl($size = 200) public function getAvatarUrl($size = 200)

View File

@ -15,6 +15,8 @@ use Da\User\Query\SocialNetworkAccountQuery;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use Yii; use Yii;
use yii\base\Exception;
use yii\base\InvalidParamException;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
use yii\helpers\Url; use yii\helpers\Url;
@ -55,7 +57,7 @@ class SocialNetworkAccount extends ActiveRecord
*/ */
public function getIsConnected() public function getIsConnected()
{ {
return $this->user_id != null; return null !== $this->user_id;
} }
/** /**
@ -71,6 +73,8 @@ class SocialNetworkAccount extends ActiveRecord
} }
/** /**
* @throws Exception
* @throws InvalidParamException
* @return string the connection url * @return string the connection url
*/ */
public function getConnectionUrl() public function getConnectionUrl()

View File

@ -16,6 +16,8 @@ use Da\User\Query\TokenQuery;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use RuntimeException; use RuntimeException;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
use yii\helpers\Url; use yii\helpers\Url;
@ -49,6 +51,9 @@ class Token extends ActiveRecord
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidParamException
* @throws InvalidConfigException
*/ */
public function beforeSave($insert) public function beforeSave($insert)
{ {
@ -86,6 +91,7 @@ class Token extends ActiveRecord
} }
/** /**
* @throws InvalidParamException
* @return string * @return string
*/ */
public function getUrl() public function getUrl()
@ -94,16 +100,17 @@ class Token extends ActiveRecord
} }
/** /**
* @throws RuntimeException
* @return bool Whether token has expired * @return bool Whether token has expired
*/ */
public function getIsExpired() public function getIsExpired()
{ {
if ($this->type == static::TYPE_RECOVERY) { if ($this->type === static::TYPE_RECOVERY) {
$expirationTime = $this->getModule()->tokenRecoveryLifespan; $expirationTime = $this->getModule()->tokenRecoveryLifespan;
} elseif ($this->type >= static::TYPE_CONFIRMATION && $this->type <= static::TYPE_CONFIRM_OLD_EMAIL) { } elseif ($this->type >= static::TYPE_CONFIRMATION && $this->type <= static::TYPE_CONFIRM_OLD_EMAIL) {
$expirationTime = $this->getModule()->tokenConfirmationLifespan; $expirationTime = $this->getModule()->tokenConfirmationLifespan;
} else { } else {
throw new RuntimeException(); throw new RuntimeException('Unknown Token type.');
} }
return ($this->created_at + $expirationTime) < time(); return ($this->created_at + $expirationTime) < time();

View File

@ -16,6 +16,9 @@ use Da\User\Query\UserQuery;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use Yii; use Yii;
use yii\base\Exception;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\base\NotSupportedException; use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior; use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
@ -74,6 +77,10 @@ class User extends ActiveRecord implements IdentityInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidParamException
* @throws InvalidConfigException
* @throws Exception
*/ */
public function beforeSave($insert) public function beforeSave($insert)
{ {
@ -99,6 +106,8 @@ class User extends ActiveRecord implements IdentityInterface
/** /**
* @inheritdoc * @inheritdoc
*
* @throws InvalidConfigException
*/ */
public function afterSave($insert, $changedAttributes) public function afterSave($insert, $changedAttributes)
{ {
@ -245,6 +254,7 @@ class User extends ActiveRecord implements IdentityInterface
} }
/** /**
* @throws InvalidConfigException
* @return bool whether the user is an admin or not * @return bool whether the user is an admin or not
*/ */
public function getIsAdmin() public function getIsAdmin()
@ -274,6 +284,8 @@ class User extends ActiveRecord implements IdentityInterface
} }
/** /**
* @throws InvalidConfigException
* @throws InvalidParamException
* @return \yii\db\ActiveQuery * @return \yii\db\ActiveQuery
*/ */
public function getProfile() public function getProfile()
@ -282,11 +294,13 @@ class User extends ActiveRecord implements IdentityInterface
} }
/** /**
* @throws \Exception
* @return SocialNetworkAccount[] social connected accounts [ 'providerName' => socialAccountModel ] * @return SocialNetworkAccount[] social connected accounts [ 'providerName' => socialAccountModel ]
*
*/ */
public function getSocialNetworkAccounts() public function getSocialNetworkAccounts()
{ {
if ($this->connectedAccounts == null) { if (null === $this->connectedAccounts) {
/** @var SocialNetworkAccount[] $accounts */ /** @var SocialNetworkAccount[] $accounts */
$accounts = $this->hasMany( $accounts = $this->hasMany(
$this->getClassMap() $this->getClassMap()
@ -313,6 +327,8 @@ class User extends ActiveRecord implements IdentityInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws NotSupportedException
*/ */
public static function findIdentityByAccessToken($token, $type = null) public static function findIdentityByAccessToken($token, $type = null)
{ {

View File

@ -26,7 +26,7 @@ class SocialNetworkAccountQuery extends ActiveQuery
return $this->andWhere( return $this->andWhere(
[ [
'provider' => $client->getId(), 'provider' => $client->getId(),
'client_id' => $client->getUserAttributes()['id'], 'client_id' => (string)$client->getUserAttributes()['id'],
] ]
); );
} }

View File

@ -13,6 +13,8 @@ namespace Da\User\Search;
use Da\User\Model\Rule; use Da\User\Model\Rule;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\base\Model; use yii\base\Model;
use yii\data\ActiveDataProvider; use yii\data\ActiveDataProvider;
use yii\db\Query; use yii\db\Query;
@ -47,6 +49,8 @@ class RuleSearch extends Rule
/** /**
* @param array $params * @param array $params
* *
* @throws InvalidConfigException
* @throws InvalidParamException
* @return ActiveDataProvider * @return ActiveDataProvider
*/ */
public function search(array $params = []) public function search(array $params = [])

View File

@ -13,6 +13,7 @@ namespace Da\User\Search;
use Da\User\Query\UserQuery; use Da\User\Query\UserQuery;
use Yii; use Yii;
use yii\base\InvalidParamException;
use yii\base\Model; use yii\base\Model;
use yii\data\ActiveDataProvider; use yii\data\ActiveDataProvider;
@ -83,6 +84,7 @@ class UserSearch extends Model
/** /**
* @param $params * @param $params
* *
* @throws InvalidParamException
* @return ActiveDataProvider * @return ActiveDataProvider
*/ */
public function search($params) public function search($params)

View File

@ -31,14 +31,14 @@ class AuthRuleEditionService implements ServiceInterface
public function run() public function run()
{ {
if (!$this->model->validate() || (!in_array($this->model->scenario, ['create', 'update']))) { if (!$this->model->validate() || (!in_array($this->model->scenario, ['create', 'update'], false))) {
return false; return false;
} }
$rule = $this->make($this->model->className, [], ['name' => $this->model->name]); $rule = $this->make($this->model->className, [], ['name' => $this->model->name]);
try { try {
if ($this->model->scenario == 'create') { if ($this->model->scenario === 'create') {
$this->getAuthManager()->add($rule); $this->getAuthManager()->add($rule);
} else { } else {
$this->getAuthManager()->update($this->model->previousName, $rule); $this->getAuthManager()->update($this->model->previousName, $rule);

View File

@ -76,8 +76,8 @@ class EmailChangeService implements ServiceInterface
); );
} }
} }
if ($this->getModule()->emailChangeStrategy === MailChangeStrategyInterface::TYPE_DEFAULT if (($this->model->flags & User::NEW_EMAIL_CONFIRMED & $this->model->flags & User::OLD_EMAIL_CONFIRMED)
|| ($this->model->flags & User::NEW_EMAIL_CONFIRMED & $this->model->flags & User::OLD_EMAIL_CONFIRMED) || $this->getModule()->emailChangeStrategy === MailChangeStrategyInterface::TYPE_DEFAULT
) { ) {
$this->model->email = $this->model->unconfirmed_email; $this->model->email = $this->model->unconfirmed_email;
$this->model->unconfirmed_email = null; $this->model->unconfirmed_email = null;

View File

@ -13,13 +13,11 @@ namespace Da\User\Service;
use Da\User\Contracts\ServiceInterface; use Da\User\Contracts\ServiceInterface;
use Da\User\Factory\TokenFactory; use Da\User\Factory\TokenFactory;
use Da\User\Model\Token;
use Da\User\Model\User; use Da\User\Model\User;
use Da\User\Query\UserQuery; use Da\User\Query\UserQuery;
use Da\User\Traits\MailAwareTrait; use Da\User\Traits\MailAwareTrait;
use Exception; use Exception;
use Yii; use Yii;
use yii\log\Logger;
class PasswordRecoveryService implements ServiceInterface class PasswordRecoveryService implements ServiceInterface
{ {
@ -30,14 +28,12 @@ class PasswordRecoveryService implements ServiceInterface
protected $email; protected $email;
protected $mailService; protected $mailService;
protected $securityHelper; protected $securityHelper;
protected $logger;
public function __construct($email, MailService $mailService, UserQuery $query, Logger $logger) public function __construct($email, MailService $mailService, UserQuery $query)
{ {
$this->email = $email; $this->email = $email;
$this->mailService = $mailService; $this->mailService = $mailService;
$this->query = $query; $this->query = $query;
$this->logger = $logger;
} }
public function run() public function run()
@ -46,6 +42,10 @@ class PasswordRecoveryService implements ServiceInterface
/** @var User $user */ /** @var User $user */
$user = $this->query->whereEmail($this->email)->one(); $user = $this->query->whereEmail($this->email)->one();
if ($user === null) {
throw new \RuntimeException('User not found.');
}
$token = TokenFactory::makeRecoveryToken($user->id); $token = TokenFactory::makeRecoveryToken($user->id);
if (!$token) { if (!$token) {
@ -65,7 +65,7 @@ class PasswordRecoveryService implements ServiceInterface
return true; return true;
} catch (Exception $e) { } catch (Exception $e) {
$this->logger->log($e->getMessage(), Logger::LEVEL_ERROR); Yii::error($e->getMessage(), 'usuario');
return false; return false;
} }

View File

@ -15,7 +15,6 @@ use Da\User\Contracts\ServiceInterface;
use Da\User\Factory\TokenFactory; use Da\User\Factory\TokenFactory;
use Da\User\Model\User; use Da\User\Model\User;
use Da\User\Traits\MailAwareTrait; use Da\User\Traits\MailAwareTrait;
use yii\log\Logger;
class ResendConfirmationService implements ServiceInterface class ResendConfirmationService implements ServiceInterface
{ {
@ -23,13 +22,11 @@ class ResendConfirmationService implements ServiceInterface
protected $model; protected $model;
protected $mailService; protected $mailService;
protected $logger;
public function __construct(User $model, MailService $mailService, Logger $logger) public function __construct(User $model, MailService $mailService)
{ {
$this->model = $model; $this->model = $model;
$this->mailService = $mailService; $this->mailService = $mailService;
$this->logger = $logger;
} }
public function run() public function run()
@ -37,6 +34,7 @@ class ResendConfirmationService implements ServiceInterface
if ($this->model && !$this->model->getIsConfirmed()) { if ($this->model && !$this->model->getIsConfirmed()) {
$token = TokenFactory::makeConfirmationToken($this->model->id); $token = TokenFactory::makeConfirmationToken($this->model->id);
$this->mailService->setViewParam('token', $token); $this->mailService->setViewParam('token', $token);
return $this->sendMail($this->model); return $this->sendMail($this->model);
} }

View File

@ -47,8 +47,7 @@ class TwoFactorQrCodeUriGeneratorService implements ServiceInterface
} }
$totpUri = (new TOTPSecretKeyUriGeneratorService(Yii::$app->name, $user->email, $user->auth_tf_key))->run(); $totpUri = (new TOTPSecretKeyUriGeneratorService(Yii::$app->name, $user->email, $user->auth_tf_key))->run();
$dataUri = (new QrCodeDataUriGeneratorService($totpUri))->run();
return $dataUri; return (new QrCodeDataUriGeneratorService($totpUri))->run();
} }
} }

View File

@ -19,7 +19,6 @@ use Da\User\Traits\MailAwareTrait;
use Exception; use Exception;
use Yii; use Yii;
use yii\base\InvalidCallException; use yii\base\InvalidCallException;
use yii\log\Logger;
class UserCreateService implements ServiceInterface class UserCreateService implements ServiceInterface
{ {
@ -28,18 +27,19 @@ class UserCreateService implements ServiceInterface
protected $model; protected $model;
protected $securityHelper; protected $securityHelper;
protected $mailService; protected $mailService;
protected $logger;
public function __construct(User $model, MailService $mailService, SecurityHelper $securityHelper, Logger $logger) public function __construct(User $model, MailService $mailService, SecurityHelper $securityHelper)
{ {
$this->model = $model; $this->model = $model;
$this->mailService = $mailService; $this->mailService = $mailService;
$this->securityHelper = $securityHelper; $this->securityHelper = $securityHelper;
$this->logger = $logger;
} }
/** /**
* @throws InvalidCallException
* @throws \yii\db\Exception
* @return bool * @return bool
*
*/ */
public function run() public function run()
{ {
@ -49,7 +49,7 @@ class UserCreateService implements ServiceInterface
throw new InvalidCallException('Cannot create a new user from an existing one.'); throw new InvalidCallException('Cannot create a new user from an existing one.');
} }
$transaction = $model->getDb()->beginTransaction(); $transaction = $model::getDb()->beginTransaction();
try { try {
$model->confirmed_at = time(); $model->confirmed_at = time();
@ -81,7 +81,7 @@ class UserCreateService implements ServiceInterface
return true; return true;
} catch (Exception $e) { } catch (Exception $e) {
$transaction->rollBack(); $transaction->rollBack();
$this->logger->log($e->getMessage(), Logger::LEVEL_ERROR); Yii::error($e->getMessage(), 'usuario');
return false; return false;
} }

View File

@ -19,9 +19,8 @@ use Da\User\Model\User;
use Da\User\Traits\MailAwareTrait; use Da\User\Traits\MailAwareTrait;
use Da\User\Traits\ModuleAwareTrait; use Da\User\Traits\ModuleAwareTrait;
use Exception; use Exception;
use yii\base\InvalidCallException;
use yii\log\Logger;
use Yii; use Yii;
use yii\base\InvalidCallException;
class UserRegisterService implements ServiceInterface class UserRegisterService implements ServiceInterface
{ {
@ -31,14 +30,12 @@ class UserRegisterService implements ServiceInterface
protected $model; protected $model;
protected $securityHelper; protected $securityHelper;
protected $mailService; protected $mailService;
protected $logger;
public function __construct(User $model, MailService $mailService, SecurityHelper $securityHelper, Logger $logger) public function __construct(User $model, MailService $mailService, SecurityHelper $securityHelper)
{ {
$this->model = $model; $this->model = $model;
$this->mailService = $mailService; $this->mailService = $mailService;
$this->securityHelper = $securityHelper; $this->securityHelper = $securityHelper;
$this->logger = $logger;
} }
public function run() public function run()
@ -49,7 +46,7 @@ class UserRegisterService implements ServiceInterface
throw new InvalidCallException('Cannot register user from an existing one.'); throw new InvalidCallException('Cannot register user from an existing one.');
} }
$transaction = $model->getDb()->beginTransaction(); $transaction = $model::getDb()->beginTransaction();
try { try {
$model->confirmed_at = $this->getModule()->enableEmailConfirmation ? null : time(); $model->confirmed_at = $this->getModule()->enableEmailConfirmation ? null : time();
@ -91,7 +88,7 @@ class UserRegisterService implements ServiceInterface
return true; return true;
} catch (Exception $e) { } catch (Exception $e) {
$transaction->rollBack(); $transaction->rollBack();
$this->logger->log($e->getMessage(), Logger::LEVEL_ERROR); Yii::error($e->getMessage(), 'usuario');
return false; return false;
} }

View File

@ -14,6 +14,7 @@ namespace Da\User\Traits;
use Da\User\Helper\AuthHelper; use Da\User\Helper\AuthHelper;
use Da\User\Helper\ClassMapHelper; use Da\User\Helper\ClassMapHelper;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\di\Container; use yii\di\Container;
/** /**
@ -39,6 +40,7 @@ trait ContainerAwareTrait
* @param array $params constructor parameters * @param array $params constructor parameters
* @param array $config attributes * @param array $config attributes
* *
* @throws InvalidConfigException
* @return object * @return object
*/ */
public function make($class, $params = [], $config = []) public function make($class, $params = [], $config = [])
@ -47,7 +49,9 @@ trait ContainerAwareTrait
} }
/** /**
* @throws InvalidConfigException
* @return \Da\User\Helper\AuthHelper|object * @return \Da\User\Helper\AuthHelper|object
*
*/ */
public function getAuth() public function getAuth()
{ {
@ -55,7 +59,9 @@ trait ContainerAwareTrait
} }
/** /**
* @throws InvalidConfigException
* @return \Da\User\Helper\ClassMapHelper|object * @return \Da\User\Helper\ClassMapHelper|object
*
*/ */
public function getClassMap() public function getClassMap()
{ {

View File

@ -15,12 +15,11 @@ use Da\User\Event\MailEvent;
use Da\User\Model\User; use Da\User\Model\User;
use Da\User\Service\MailService; use Da\User\Service\MailService;
use Exception; use Exception;
use yii\log\Logger; use Yii;
use yii\base\InvalidConfigException;
/** /**
* @property MailService $mailService * @property MailService $mailService
* @property Logger $logger
* @author Kartik Visweswaran <kartikv2@gmail.com>
*/ */
trait MailAwareTrait trait MailAwareTrait
{ {
@ -31,6 +30,7 @@ trait MailAwareTrait
* *
* @param User $user * @param User $user
* *
* @throws InvalidConfigException
* @return bool * @return bool
*/ */
protected function sendMail(User $user) protected function sendMail(User $user)
@ -42,7 +42,7 @@ trait MailAwareTrait
$this->mailService->run(); $this->mailService->run();
} catch (Exception $e) { } catch (Exception $e) {
$event = $this->make(MailEvent::class, [$type, $user, $this->mailService, $e]); $event = $this->make(MailEvent::class, [$type, $user, $this->mailService, $e]);
$this->logger->log($e->getMessage(), Logger::LEVEL_ERROR); Yii::error($e->getMessage(), 'usuario');
$user->trigger(MailEvent::EVENT_AFTER_SEND_MAIL, $event); $user->trigger(MailEvent::EVENT_AFTER_SEND_MAIL, $event);
return false; return false;
} }

View File

@ -26,7 +26,7 @@ class RbacItemsValidator extends Validator
} }
foreach ($value as $item) { foreach ($value as $item) {
if ($this->getAuthManager()->getItem($item) == null) { if ($this->getAuthManager()->getItem($item) === null) {
return [Yii::t('usuario', 'There is neither role nor permission with name "{0}"', [$item]), []]; return [Yii::t('usuario', 'There is neither role nor permission with name "{0}"', [$item]), []];
} }
} }

View File

@ -30,7 +30,7 @@ class RbacRuleNameValidator extends Validator
*/ */
protected function validateValue($value) protected function validateValue($value)
{ {
if ($this->previousName != $value) { if ($this->previousName !== $value) {
$rule = $this->getAuthManager()->getRule($value); $rule = $this->getAuthManager()->getRule($value);
if ($rule instanceof Rule) { if ($rule instanceof Rule) {

View File

@ -13,6 +13,7 @@ namespace Da\User\Validator;
use Da\User\Component\ReCaptchaComponent; use Da\User\Component\ReCaptchaComponent;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\validators\Validator; use yii\validators\Validator;
class ReCaptchaValidator extends Validator class ReCaptchaValidator extends Validator
@ -52,6 +53,8 @@ class ReCaptchaValidator extends Validator
/** /**
* @inheritdoc * @inheritdoc
*
* @throws InvalidConfigException
*/ */
protected function validateValue($value) protected function validateValue($value)
{ {

View File

@ -24,6 +24,6 @@ class TimeZoneValidator implements ValidatorInterface
public function validate() public function validate()
{ {
return in_array($this->timezone, timezone_identifiers_list()); return in_array($this->timezone, timezone_identifiers_list(), false);
} }
} }

View File

@ -11,6 +11,7 @@
namespace Da\User\Validator; namespace Da\User\Validator;
use Da\TwoFA\Exception\InvalidSecretKeyException;
use Da\TwoFA\Manager; use Da\TwoFA\Manager;
use Da\User\Contracts\ValidatorInterface; use Da\User\Contracts\ValidatorInterface;
use Da\User\Model\User; use Da\User\Model\User;
@ -36,7 +37,9 @@ class TwoFactorCodeValidator implements ValidatorInterface
} }
/** /**
* @throws InvalidSecretKeyException
* @return bool|int * @return bool|int
*
*/ */
public function validate() public function validate()
{ {

View File

@ -16,6 +16,7 @@ use Da\User\Service\UpdateAuthAssignmentsService;
use Da\User\Traits\AuthManagerAwareTrait; use Da\User\Traits\AuthManagerAwareTrait;
use Da\User\Traits\ContainerAwareTrait; use Da\User\Traits\ContainerAwareTrait;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\base\Widget; use yii\base\Widget;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
@ -48,6 +49,9 @@ class AssignmentsWidget extends Widget
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidParamException
* @throws InvalidConfigException
*/ */
public function run() public function run()
{ {

View File

@ -15,6 +15,7 @@ use Yii;
use yii\authclient\ClientInterface; use yii\authclient\ClientInterface;
use yii\authclient\widgets\AuthChoice; use yii\authclient\widgets\AuthChoice;
use yii\authclient\widgets\AuthChoiceAsset; use yii\authclient\widgets\AuthChoiceAsset;
use yii\base\InvalidParamException;
use yii\helpers\Html; use yii\helpers\Html;
use yii\helpers\Url; use yii\helpers\Url;
@ -40,6 +41,8 @@ class ConnectWidget extends AuthChoice
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @throws InvalidParamException
*/ */
public function createClientUrl($provider) public function createClientUrl($provider)
{ {
@ -59,6 +62,6 @@ class ConnectWidget extends AuthChoice
*/ */
public function isConnected(ClientInterface $provider) public function isConnected(ClientInterface $provider)
{ {
return $this->accounts != null && isset($this->accounts[$provider->getId()]); return null !== $this->accounts && isset($this->accounts[$provider->getId()]);
} }
} }

View File

@ -49,6 +49,8 @@ class ReCaptchaWidget extends InputWidget
/** /**
* @inheritdoc * @inheritdoc
*
* @throws InvalidConfigException
*/ */
public function init() public function init()
{ {
@ -63,6 +65,8 @@ class ReCaptchaWidget extends InputWidget
/** /**
* @inheritdoc * @inheritdoc
*
* @throws InvalidConfigException
*/ */
public function run() public function run()
{ {
@ -78,6 +82,7 @@ class ReCaptchaWidget extends InputWidget
} }
/** /**
* @throws InvalidConfigException
* @return array the google recaptcha options. * @return array the google recaptcha options.
*/ */
protected function getCaptchaOptions() protected function getCaptchaOptions()
@ -156,7 +161,7 @@ class ReCaptchaWidget extends InputWidget
'pt-PT' 'pt-PT'
]; ];
return in_array($language, $except) return in_array($language, $except, false)
? $language ? $language
: substr($language, 0, strpos($language, '-')); : substr($language, 0, strpos($language, '-'));
} }

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -17,75 +17,39 @@
* NOTE: this file must be saved in UTF-8 encoding. * NOTE: this file must be saved in UTF-8 encoding.
*/ */
return [ return [
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Eine Nachricht wurde an Ihre E-Mail-Adresse gesendet. Sie enthält einen Bestätigungslink den Sie klicken müssen um die Registrierung abzuschließen.', 'Disable two factor authentication' => '',
'Are you sure you want to switch to this user for the rest of this Session?' => 'Sind Sie sicher, dass Sie zu diesem Benutzer zu wechseln möchten für den Rest dieser Session?', 'Enable two factor authentication' => '',
'Are you sure you wish to send a password recovery email to this user?' => 'Sind Sie sicher, dass Sie eine Passwortwiederherstellungs-Mail an diesen Benutzer senden möchten?', 'Invalid two factor authentication code' => '',
'Authentication rule class {0} can not be instantiated' => 'Von der Authentifizierungsregel Klasse {0} kann keine Instanz erstellt werden', 'This will disable two factor authentication. Are you sure?' => '',
'Authorization rule has been added.' => 'Berechtigungsregel wurde hinzugefügt.', 'Two Factor Authentication (2FA)' => '',
'Authorization rule has been removed.' => 'Berechtigungsregel wurde entfernt.', 'Two factor authentication code' => '',
'Authorization rule has been updated.' => 'Berechtigungsregel wurde gespeichert.', 'Two factor authentication has been disabled.' => '',
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Fast geschafft. Nun müssen Sie nur noch den Aktivierungslink besuchen, der an ihre neue E-Mail Adresse gesendet wurde.', 'Two factor authentication protects you against stolen credentials' => '',
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Fast geschafft. Nun müssen Sie nur noch den Aktivierungslink besuchen, der an ihre alte E-Mail Adresse gesendet wurde.', 'Two factor authentication successfully enabled.' => '',
'Cancel' => 'Abbrechen', 'Unable to disable Two factor authentication.' => '',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'Kann die Rolle "{0}" nicht zuordnen da der AuthManager in der Console Application nicht konfiguriert ist.',
'Class' => 'Klasse',
'Close' => 'schließen',
'Create new rule' => 'Neue Regel erstellen',
'Created at' => 'Erstellt am',
'Disable Two-Factor Auth' => 'Zweifaktor-Authentifizierung deaktivieren',
'Enable' => 'aktivieren',
'Enable Two-factor auth' => 'Zweifaktor-Authentifizierung aktivieren',
'Error sending registration message to "{email}". Please try again later.' => 'Fehler beim Senden der Registrierungsnachricht an "{email}". Bitte später noch einmal probieren.',
'Error sending welcome message to "{email}". Please try again later.' => 'Fehler beim Senden der Willkommensnachricht an "{email}". Bitte später noch einmal probieren.',
'Impersonate this user' => 'Wechsle zu diesem Benutzer',
'Invalid two-factor code' => 'Ungültiger Zweifaktor Schlüssel',
'Last login' => 'Letzter Login',
'Never' => 'Nie',
'New rule' => 'Neue Regel',
'Required "key" cannot be empty.' => 'Erforderlicher "key" darf nicht leer sein.',
'Required "secret" cannot be empty.' => 'Erforderliches "secret" darf nicht leer sein.',
'Role "{0}" not found. Creating it.' => 'Rolle "{0}" nicht gefunden. Erstelle diese.',
'Rule class must extend "yii\\rbac\\Rule".' => 'Regelklasse muss "yii\\rbac\\Rule" erweitern.',
'Rule name {0} is already in use' => 'Regelname {0} bereits in Benutzung',
'Rule {0} does not exists' => 'Regel {0} existiert nicht',
'Rule {0} not found.' => 'Regel {0} nicht gefunden.',
'Rules' => 'Regeln',
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Scanne den Qr-Code mit der Google Authenticator App, dann füge den temporären Schlüssel in das Feld und sende es ab.',
'Send password recovery email' => 'Sende Mail zur Passwortwiederherstellung',
'Switch identities is disabled.' => 'Identitäten wechseln ist deaktiviert.',
'The "recaptcha" component must be configured.' => 'Die "recaptcha" Komponente muss konfiguriert werden.',
'The verification code is incorrect.' => 'Der Verifizierungsschlüssel ist ungültig.',
'This will disable two-factor auth. Are you sure?' => 'Dies wird die Zweifaktor-Authentifizierung deaktivieren. Sind Sie sicher?',
'Two Factor Authentication' => 'Zweifaktor-Authentifizierung',
'Two factor successfully enabled.' => 'Zweifaktor-Authentifizierung erfolgreich aktiviert.',
'Two-Factor Authentication' => 'Zweifaktor-Authentifizierung',
'Two-factor auth protects you against stolen credentials' => 'Zweifaktor-Authentifizierung schützt Sie vor gestohlenen Zugangsdaten',
'Two-factor authentication code' => 'Zweifaktor-Authentifizierungsschlüssel',
'Two-factor authorization has been disabled.' => 'Zweifaktor-Authentifizierung wurde deaktiviert.',
'Two-factor code' => 'Zweifaktor-Schlüssel',
'Unable to create new authorization rule.' => 'Unfähig eine neue Authentifizierungsregel zu erstellen.',
'Unable to disable two-factor authorization.' => 'Unfähig die Zweifaktor-Authentifizierung zu deaktivieren.',
'Unable to send recovery message to the user' => 'Unfähig die Wiederherstellungsnachricht an den Benutzer zu senden.',
'Unable to update authorization rule.' => 'Unfähig die Berechtigungsregel zu speichern.',
'Update rule' => 'Regel aktualisieren',
'Updated at' => 'Aktualisiert am',
'User account could not be created.' => 'Benutzerkonto konnte nicht erstellt werden.',
'User could not be registered.' => 'Benutzer konnte nicht registriert werden.',
'User not found.' => 'Benutzer nicht gefunden.',
'Verification failed. Please, enter new code.' => 'Verifizierung fehlgeschlagen. Bitte einen neuen Schlüssel eingeben.',
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Wir konnten die Mail zur Bestätigung Ihrer Adresse nicht noch einmal senden. Bitte kontrollieren Sie ob die E-Mail-Adresse korrekt ist oder diese bereits bestätigt wurde.',
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Wir haben Ihnen Bestätigungslinks an die alte und neue E-Mail-Adresse geschickt. Sie müssen beide Links anklicken um die Anfrage fertigzustellen.',
'{0} cannot be blank.' => '{0} darf nicht leer sein.',
'A message has been sent to your email address. ' => '@@Eine Nachricht wurde an ihre E-Mail Adresse versandt@@', 'A message has been sent to your email address. ' => '@@Eine Nachricht wurde an ihre E-Mail Adresse versandt@@',
'Awesome, almost there. ' => '@@Fast geschafft. @@', 'Awesome, almost there. ' => '@@Fast geschafft. @@',
'Class "{0}" does not exist' => '@@Klasse "{0}" existiert nicht@@', 'Class "{0}" does not exist' => '@@Klasse "{0}" existiert nicht@@',
'Disable Two-Factor Auth' => '@@Zweifaktor-Authentifizierung deaktivieren@@',
'Enable Two-factor auth' => '@@Zweifaktor-Authentifizierung aktivieren@@',
'Invalid two-factor code' => '@@Ungültiger Zweifaktor Schlüssel@@',
'Registration ip' => '@@Registrierungs-IP@@', 'Registration ip' => '@@Registrierungs-IP@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@Dies wird die Zweifaktor-Authentifizierung deaktivieren. Sind Sie sicher?@@',
'Two Factor Authentication' => '@@Zweifaktor-Authentifizierung@@',
'Two factor successfully enabled.' => '@@Zweifaktor-Authentifizierung erfolgreich aktiviert.@@',
'Two-Factor Authentication' => '@@Zweifaktor-Authentifizierung@@',
'Two-factor auth protects you against stolen credentials' => '@@Zweifaktor-Authentifizierung schützt Sie vor gestohlenen Zugangsdaten@@',
'Two-factor authentication code' => '@@Zweifaktor-Authentifizierungsschlüssel@@',
'Two-factor authorization has been disabled.' => '@@Zweifaktor-Authentifizierung wurde deaktiviert.@@',
'Two-factor code' => '@@Zweifaktor-Schlüssel@@',
'Unable to disable two-factor authorization.' => '@@Unfähig die Zweifaktor-Authentifizierung zu deaktivieren.@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@Wir konnte die Bestätigungs E-Mail nicht erneut versenden@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@Wir konnte die Bestätigungs E-Mail nicht erneut versenden@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Wir haben Bestätigungs E-Mails an die neue und alte E-Mail Adresse versandt.@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@Wir haben Bestätigungs E-Mails an die neue und alte E-Mail Adresse versandt.@@',
'(not set)' => '(nicht gesetzt)', '(not set)' => '(nicht gesetzt)',
'A confirmation message has been sent to your new email address' => 'Eine Bestätigungsnachricht wurde an Ihre neue E-Mail Adresse versandt', 'A confirmation message has been sent to your new email address' => 'Eine Bestätigungsnachricht wurde an Ihre neue E-Mail Adresse versandt',
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Eine Nachricht wurde an Ihre E-Mail-Adresse gesendet. Sie enthält einen Bestätigungslink den Sie klicken müssen um die Registrierung abzuschließen.',
'A new confirmation link has been sent' => 'Ein neuer Bestätigungs-Link wurde versendet', 'A new confirmation link has been sent' => 'Ein neuer Bestätigungs-Link wurde versendet',
'A password will be generated automatically if not provided' => 'Leer lassen, um automatisch ein Passwort zu generieren', 'A password will be generated automatically if not provided' => 'Leer lassen, um automatisch ein Passwort zu generieren',
'Account' => 'Konto', 'Account' => 'Konto',
@ -99,21 +63,33 @@ return [
'Are you sure you want to block this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer blockieren wollen?', 'Are you sure you want to block this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer blockieren wollen?',
'Are you sure you want to confirm this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer bestätigen wollen?', 'Are you sure you want to confirm this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer bestätigen wollen?',
'Are you sure you want to delete this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer löschen wollen?', 'Are you sure you want to delete this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer löschen wollen?',
'Are you sure you want to switch to this user for the rest of this Session?' => 'Sind Sie sicher, dass Sie zu diesem Benutzer zu wechseln möchten für den Rest dieser Session?',
'Are you sure you want to unblock this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer wieder freischalten wollen?', 'Are you sure you want to unblock this user?' => 'Sind Sie sicher, dass Sie diesen Benutzer wieder freischalten wollen?',
'Are you sure you wish to send a password recovery email to this user?' => 'Sind Sie sicher, dass Sie eine Passwortwiederherstellungs-Mail an diesen Benutzer senden möchten?',
'Are you sure? Deleted user can not be restored' => 'Sind Sie sicher? Gelöschte Benutzer können nicht wiederhergestellt werden', 'Are you sure? Deleted user can not be restored' => 'Sind Sie sicher? Gelöschte Benutzer können nicht wiederhergestellt werden',
'Are you sure? There is no going back' => 'Sind Sie sicher? Es gibt kein Zurück', 'Are you sure? There is no going back' => 'Sind Sie sicher? Es gibt kein Zurück',
'Assignments' => 'Zuordnungen', 'Assignments' => 'Zuordnungen',
'Assignments have been updated' => 'Zuordnungen wurden gespeichert', 'Assignments have been updated' => 'Zuordnungen wurden gespeichert',
'Auth item with such name already exists' => 'Eine Berechtigung mit diesem Name existiert bereits', 'Auth item with such name already exists' => 'Eine Berechtigung mit diesem Name existiert bereits',
'Authentication rule class {0} can not be instantiated' => 'Von der Authentifizierungsregel Klasse {0} kann keine Instanz erstellt werden',
'Authorization item successfully created.' => 'Berechtigung erfolgreich erstellt', 'Authorization item successfully created.' => 'Berechtigung erfolgreich erstellt',
'Authorization item successfully removed.' => 'Berechtigung erfolgreich gelöscht', 'Authorization item successfully removed.' => 'Berechtigung erfolgreich gelöscht',
'Authorization item successfully updated.' => 'Berechtigung erfolgreich gespeichert', 'Authorization item successfully updated.' => 'Berechtigung erfolgreich gespeichert',
'Authorization rule has been added.' => 'Berechtigungsregel wurde hinzugefügt.',
'Authorization rule has been removed.' => 'Berechtigungsregel wurde entfernt.',
'Authorization rule has been updated.' => 'Berechtigungsregel wurde gespeichert.',
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Fast geschafft. Nun müssen Sie nur noch den Aktivierungslink besuchen, der an ihre neue E-Mail Adresse gesendet wurde.',
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Fast geschafft. Nun müssen Sie nur noch den Aktivierungslink besuchen, der an ihre alte E-Mail Adresse gesendet wurde.',
'Bio' => 'Bio', 'Bio' => 'Bio',
'Block' => 'Blockieren', 'Block' => 'Blockieren',
'Block status' => 'Blockadestatus', 'Block status' => 'Blockadestatus',
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Blockiert am {0, date, dd. MMMM YYYY, HH:mm}', 'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Blockiert am {0, date, dd. MMMM YYYY, HH:mm}',
'Cancel' => 'Abbrechen',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'Kann die Rolle "{0}" nicht zuordnen da der AuthManager in der Console Application nicht konfiguriert ist.',
'Change your avatar at Gravatar.com' => 'Ändern Sie ihren Avatar auf Gravatar.com', 'Change your avatar at Gravatar.com' => 'Ändern Sie ihren Avatar auf Gravatar.com',
'Children' => 'Unterelemente', 'Children' => 'Unterelemente',
'Class' => 'Klasse',
'Close' => 'schließen',
'Complete password reset on {0}' => 'Passwort-Wiederherstellung auf {0} fertigstellen', 'Complete password reset on {0}' => 'Passwort-Wiederherstellung auf {0} fertigstellen',
'Confirm' => 'Bestätigen', 'Confirm' => 'Bestätigen',
'Confirm account on {0}' => 'Konto auf {0} bestätigen', 'Confirm account on {0}' => 'Konto auf {0} bestätigen',
@ -129,6 +105,8 @@ return [
'Create a user account' => 'Konto erstellen', 'Create a user account' => 'Konto erstellen',
'Create new permission' => 'Neue Berechtigung anlegen', 'Create new permission' => 'Neue Berechtigung anlegen',
'Create new role' => 'Neue Rolle anlegen', 'Create new role' => 'Neue Rolle anlegen',
'Create new rule' => 'Neue Regel erstellen',
'Created at' => 'Erstellt am',
'Credentials will be sent to the user by email' => 'Die Zugangsdaten werden dem Nutzer per E-Mail versendet', 'Credentials will be sent to the user by email' => 'Die Zugangsdaten werden dem Nutzer per E-Mail versendet',
'Current password' => 'Aktuelles Passwort', 'Current password' => 'Aktuelles Passwort',
'Current password is not valid' => 'Das aktuelle Passwort ist nicht korrekt', 'Current password is not valid' => 'Das aktuelle Passwort ist nicht korrekt',
@ -140,9 +118,12 @@ return [
'Don\'t have an account? Sign up!' => 'Sie haben noch kein Konto? Registrieren!', 'Don\'t have an account? Sign up!' => 'Sie haben noch kein Konto? Registrieren!',
'Email' => 'E-Mail', 'Email' => 'E-Mail',
'Email (public)' => 'E-Mail (öffentlich)', 'Email (public)' => 'E-Mail (öffentlich)',
'Enable' => 'aktivieren',
'Error occurred while changing password' => 'Fehler beim ändern des Passworts', 'Error occurred while changing password' => 'Fehler beim ändern des Passworts',
'Error occurred while confirming user' => 'Fehler beim Bestätigen des Benutzers', 'Error occurred while confirming user' => 'Fehler beim Bestätigen des Benutzers',
'Error occurred while deleting user' => 'Fehler beim Löschen des Benutzers', 'Error occurred while deleting user' => 'Fehler beim Löschen des Benutzers',
'Error sending registration message to "{email}". Please try again later.' => 'Fehler beim Senden der Registrierungsnachricht an "{email}". Bitte später noch einmal probieren.',
'Error sending welcome message to "{email}". Please try again later.' => 'Fehler beim Senden der Willkommensnachricht an "{email}". Bitte später noch einmal probieren.',
'Finish' => 'Fertig', 'Finish' => 'Fertig',
'Forgot password?' => 'Passwort vergessen?', 'Forgot password?' => 'Passwort vergessen?',
'Gravatar email' => 'Gravatar E-Mail', 'Gravatar email' => 'Gravatar E-Mail',
@ -150,6 +131,7 @@ return [
'If you already registered, sign in and connect this account on settings page' => 'Wenn Sie sich bereits registriert haben, melden Sie sich an und verbinden Sie dieses Konto auf der Einstellungs-Seite', 'If you already registered, sign in and connect this account on settings page' => 'Wenn Sie sich bereits registriert haben, melden Sie sich an und verbinden Sie dieses Konto auf der Einstellungs-Seite',
'If you cannot click the link, please try pasting the text into your browser' => 'Wenn Sie den Link nicht anklicken können, versuchen Sie, diesen in ihre Browser-Leiste einzufügen', 'If you cannot click the link, please try pasting the text into your browser' => 'Wenn Sie den Link nicht anklicken können, versuchen Sie, diesen in ihre Browser-Leiste einzufügen',
'If you did not make this request you can ignore this email' => 'Wenn Sie diese Anfrage nicht gemacht haben, können Sie diese E-Mail ignorieren', 'If you did not make this request you can ignore this email' => 'Wenn Sie diese Anfrage nicht gemacht haben, können Sie diese E-Mail ignorieren',
'Impersonate this user' => 'Wechsle zu diesem Benutzer',
'In order to complete your registration, please click the link below' => 'Um Ihre Registrierung abzuschliessen, klicken Sie bitte auf den Link unten', 'In order to complete your registration, please click the link below' => 'Um Ihre Registrierung abzuschliessen, klicken Sie bitte auf den Link unten',
'In order to complete your request, please click the link below' => 'Um Ihre Anfrage abzuschliessen, klicken Sie bitte auf den Link unten', 'In order to complete your request, please click the link below' => 'Um Ihre Anfrage abzuschliessen, klicken Sie bitte auf den Link unten',
'In order to finish your registration, we need you to enter following fields' => 'Um Ihre Registrierung abzuschliessen, müssen Sie noch die folgenden Felder ausfüllen', 'In order to finish your registration, we need you to enter following fields' => 'Um Ihre Registrierung abzuschliessen, müssen Sie noch die folgenden Felder ausfüllen',
@ -160,16 +142,19 @@ return [
'It will be deleted forever' => 'Es wird permanent gelöscht', 'It will be deleted forever' => 'Es wird permanent gelöscht',
'Items' => 'Elemente', 'Items' => 'Elemente',
'Joined on {0, date}' => 'Mitglies seit {0, date}', 'Joined on {0, date}' => 'Mitglies seit {0, date}',
'Last login' => 'Letzter Login',
'Location' => 'Ort', 'Location' => 'Ort',
'Login' => 'Anmelden', 'Login' => 'Anmelden',
'Logout' => 'Abmelden', 'Logout' => 'Abmelden',
'Manage users' => 'Nutzer verwalten', 'Manage users' => 'Nutzer verwalten',
'Name' => 'Name', 'Name' => 'Name',
'Networks' => 'Netzwerke', 'Networks' => 'Netzwerke',
'Never' => 'Nie',
'New email' => 'Neue E-Mail', 'New email' => 'Neue E-Mail',
'New password' => 'Neues Passwort', 'New password' => 'Neues Passwort',
'New permission' => 'Neue Berechtigung', 'New permission' => 'Neue Berechtigung',
'New role' => 'Neue Rolle', 'New role' => 'Neue Rolle',
'New rule' => 'Neue Regel',
'New user' => 'Neuer Benutzer', 'New user' => 'Neuer Benutzer',
'Not blocked' => 'Nicht geblockt', 'Not blocked' => 'Nicht geblockt',
'Not found' => 'Nicht gefunden', 'Not found' => 'Nicht gefunden',
@ -192,17 +177,30 @@ return [
'Registration time' => 'Registrierungszeit', 'Registration time' => 'Registrierungszeit',
'Remember me next time' => 'Anmeldung für das nächste mal merken', 'Remember me next time' => 'Anmeldung für das nächste mal merken',
'Request new confirmation message' => 'Neuen Wiederherstellungs-Link anfordern', 'Request new confirmation message' => 'Neuen Wiederherstellungs-Link anfordern',
'Required "key" cannot be empty.' => 'Erforderlicher "key" darf nicht leer sein.',
'Required "secret" cannot be empty.' => 'Erforderliches "secret" darf nicht leer sein.',
'Reset your password' => 'Passwort wiederherstellen', 'Reset your password' => 'Passwort wiederherstellen',
'Role "{0}" not found. Creating it.' => 'Rolle "{0}" nicht gefunden. Erstelle diese.',
'Roles' => 'Rollen', 'Roles' => 'Rollen',
'Rule' => 'Regel', 'Rule' => 'Regel',
'Rule class must extend "yii\\rbac\\Rule".' => 'Regelklasse muss "yii\\rbac\\Rule" erweitern.',
'Rule name' => 'Regelname', 'Rule name' => 'Regelname',
'Rule name {0} is already in use' => 'Regelname {0} bereits in Benutzung',
'Rule {0} does not exists' => 'Regel {0} existiert nicht',
'Rule {0} not found.' => 'Regel {0} nicht gefunden.',
'Rules' => 'Regeln',
'Save' => 'Speichern', 'Save' => 'Speichern',
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Scanne den Qr-Code mit der Google Authenticator App, dann füge den temporären Schlüssel in das Feld und sende es ab.',
'Send password recovery email' => 'Sende Mail zur Passwortwiederherstellung',
'Sign in' => 'Anmelden', 'Sign in' => 'Anmelden',
'Sign up' => 'Registrieren', 'Sign up' => 'Registrieren',
'Something went wrong' => 'Etwas ist schiefgelaufen', 'Something went wrong' => 'Etwas ist schiefgelaufen',
'Switch identities is disabled.' => 'Identitäten wechseln ist deaktiviert.',
'Thank you for signing up on {0}' => 'Danke für ihre Registrierung auf {0}', 'Thank you for signing up on {0}' => 'Danke für ihre Registrierung auf {0}',
'Thank you, registration is now complete.' => 'Danke, ihre Registrierung ist nun abgeschlossen.', 'Thank you, registration is now complete.' => 'Danke, ihre Registrierung ist nun abgeschlossen.',
'The "recaptcha" component must be configured.' => 'Die "recaptcha" Komponente muss konfiguriert werden.',
'The confirmation link is invalid or expired. Please try requesting a new one.' => 'Ihr Aktivierungslink ist falsch oder abgelaufen. Bitte fordern Sie einen neuen an.', 'The confirmation link is invalid or expired. Please try requesting a new one.' => 'Ihr Aktivierungslink ist falsch oder abgelaufen. Bitte fordern Sie einen neuen an.',
'The verification code is incorrect.' => 'Der Verifizierungsschlüssel ist ungültig.',
'There is neither role nor permission with name "{0}"' => 'Es gibt weder eine Rolle noch eine Berechtigung mit dem Namen "{0}"', 'There is neither role nor permission with name "{0}"' => 'Es gibt weder eine Rolle noch eine Berechtigung mit dem Namen "{0}"',
'This account has already been connected to another user' => 'Dieses Konto wurde bereits von einem anderen Benutzer verbunden', 'This account has already been connected to another user' => 'Dieses Konto wurde bereits von einem anderen Benutzer verbunden',
'This email address has already been taken' => 'Die E-Mail Adresse ist bereits vergeben', 'This email address has already been taken' => 'Die E-Mail Adresse ist bereits vergeben',
@ -212,10 +210,13 @@ return [
'Unable to confirm user. Please, try again.' => 'Der Benutzer konnte nicht bestätigt werden. Bitte versuchen Sie es erneut.', 'Unable to confirm user. Please, try again.' => 'Der Benutzer konnte nicht bestätigt werden. Bitte versuchen Sie es erneut.',
'Unable to create an account.' => 'Konto konnte nicht erstellt werden', 'Unable to create an account.' => 'Konto konnte nicht erstellt werden',
'Unable to create authorization item.' => 'Authorization Item konnte nicht erstellt werden', 'Unable to create authorization item.' => 'Authorization Item konnte nicht erstellt werden',
'Unable to create new authorization rule.' => 'Unfähig eine neue Authentifizierungsregel zu erstellen.',
'Unable to delete user. Please, try again later.' => 'Benutzer konnte nicht gelöscht werden.', 'Unable to delete user. Please, try again later.' => 'Benutzer konnte nicht gelöscht werden.',
'Unable to remove authorization item.' => 'Authorization Item konnte nicht gelöscht werden.', 'Unable to remove authorization item.' => 'Authorization Item konnte nicht gelöscht werden.',
'Unable to send confirmation link' => 'Konnte Bestätigungslink nicht versenden', 'Unable to send confirmation link' => 'Konnte Bestätigungslink nicht versenden',
'Unable to send recovery message to the user' => 'Unfähig die Wiederherstellungsnachricht an den Benutzer zu senden.',
'Unable to update authorization item.' => 'Konnte Authorization item nicht ändern', 'Unable to update authorization item.' => 'Konnte Authorization item nicht ändern',
'Unable to update authorization rule.' => 'Unfähig die Berechtigungsregel zu speichern.',
'Unable to update block status.' => 'Konnte den Block-Status nicht ändern', 'Unable to update block status.' => 'Konnte den Block-Status nicht ändern',
'Unblock' => 'Freischalten', 'Unblock' => 'Freischalten',
'Unconfirmed' => 'Unbestätigt', 'Unconfirmed' => 'Unbestätigt',
@ -223,18 +224,26 @@ return [
'Update assignments' => 'Zuweisung ändern', 'Update assignments' => 'Zuweisung ändern',
'Update permission' => 'Berechtigung ändern', 'Update permission' => 'Berechtigung ändern',
'Update role' => 'Rolle ändern', 'Update role' => 'Rolle ändern',
'Update rule' => 'Regel aktualisieren',
'Update user account' => 'Konto ändern', 'Update user account' => 'Konto ändern',
'Updated at' => 'Aktualisiert am',
'User account could not be created.' => 'Benutzerkonto konnte nicht erstellt werden.',
'User block status has been updated.' => 'Der Status des Benutzer wurde gespeichert', 'User block status has been updated.' => 'Der Status des Benutzer wurde gespeichert',
'User could not be registered.' => 'Benutzer konnte nicht registriert werden.',
'User has been confirmed' => 'Benutzer wurde bestätigt', 'User has been confirmed' => 'Benutzer wurde bestätigt',
'User has been created' => 'Benutzer wurde angelegt', 'User has been created' => 'Benutzer wurde angelegt',
'User has been deleted' => 'Benutzer wurde gelöscht', 'User has been deleted' => 'Benutzer wurde gelöscht',
'User is not found' => 'Benutzer wurde nicht gefunden', 'User is not found' => 'Benutzer wurde nicht gefunden',
'User not found.' => 'Benutzer nicht gefunden.',
'Username' => 'Benutzername', 'Username' => 'Benutzername',
'Users' => 'Benutzer', 'Users' => 'Benutzer',
'VKontakte' => 'VKontakte', 'VKontakte' => 'VKontakte',
'Verification failed. Please, enter new code.' => 'Verifizierung fehlgeschlagen. Bitte einen neuen Schlüssel eingeben.',
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Wir konnten die Mail zur Bestätigung Ihrer Adresse nicht noch einmal senden. Bitte kontrollieren Sie ob die E-Mail-Adresse korrekt ist oder diese bereits bestätigt wurde.',
'We have generated a password for you' => 'Ein Passwort wurde für Sie generiert', 'We have generated a password for you' => 'Ein Passwort wurde für Sie generiert',
'We have received a request to change the email address for your account on {0}' => 'Wir haben eine Anfrage, ihre E-Mail Adresse auf {0} zu verändern, bekommen', 'We have received a request to change the email address for your account on {0}' => 'Wir haben eine Anfrage, ihre E-Mail Adresse auf {0} zu verändern, bekommen',
'We have received a request to reset the password for your account on {0}' => 'Wir haben eine Anfrage, ihr Passwort auf {0} wiederherzustellen, bekommen', 'We have received a request to reset the password for your account on {0}' => 'Wir haben eine Anfrage, ihr Passwort auf {0} wiederherzustellen, bekommen',
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Wir haben Ihnen Bestätigungslinks an die alte und neue E-Mail-Adresse geschickt. Sie müssen beide Links anklicken um die Anfrage fertigzustellen.',
'Website' => 'Webseite', 'Website' => 'Webseite',
'Welcome to {0}' => 'Willkommen auf {0}', 'Welcome to {0}' => 'Willkommen auf {0}',
'Yandex' => 'Yandex', 'Yandex' => 'Yandex',
@ -254,4 +263,5 @@ return [
'Your email address has been changed' => 'Ihre E-Mail Adresse wurde geändert', 'Your email address has been changed' => 'Ihre E-Mail Adresse wurde geändert',
'Your profile has been updated' => 'Ihr Profil wurde gespeichert', 'Your profile has been updated' => 'Ihr Profil wurde gespeichert',
'{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd. MMMM 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.',
]; ];

View File

@ -17,10 +17,28 @@
* NOTE: this file must be saved in UTF-8 encoding. * NOTE: this file must be saved in UTF-8 encoding.
*/ */
return [ return [
'Error sending registration message to "{email}". Please try again later.' => 'Ha ocurrido un error enviando el mensaje de registro a "{email}". Por favor inténtalo de nuevo más tarde.', 'Disable two factor authentication' => '',
'Error sending welcome message to "{email}". Please try again later.' => 'Ha ocurrido un error al enviar el mensaje de bienvenida a "{email}". Por favor inténtalo de nuevo más tarde.', 'Enable two factor authentication' => '',
'User account could not be created.' => 'La cuenta de usuario no ha podido ser creada.', 'Invalid two factor authentication code' => '',
'User could not be registered.' => 'El usuario no ha podido ser registrado.', 'This will disable two factor authentication. Are you sure?' => '',
'Two Factor Authentication (2FA)' => '',
'Two factor authentication code' => '',
'Two factor authentication has been disabled.' => '',
'Two factor authentication protects you against stolen credentials' => '',
'Two factor authentication successfully enabled.' => '',
'Unable to disable Two factor authentication.' => '',
'Disable Two-Factor Auth' => '@@Desabilitar autenticación de dos factores@@',
'Enable Two-factor auth' => '@@Habilitar autenticación de dos factores@@',
'Invalid two-factor code' => '@@Código de dos factores inválido@@',
'This will disable two-factor auth. Are you sure?' => '@@Esto inhabilitará la autenticación de dos factores. Estás seguro?@@',
'Two Factor Authentication' => '@@Autenticación de Dos Factores@@',
'Two factor successfully enabled.' => '@@Autenticación de dos factores habilitada con éxito.@@',
'Two-Factor Authentication' => '@@Autenticación de Dos Factores@@',
'Two-factor auth protects you against stolen credentials' => '@@La autenticación te protege contra el robo de credenciales@@',
'Two-factor authentication code' => '@@Código de doble autenticación@@',
'Two-factor authorization has been disabled.' => '@@La autenticación de dos factores ha sido inhabilitada.@@',
'Two-factor code' => '@@Código de dos factores@@',
'Unable to disable two-factor authorization.' => '@@Ha sido imposible inhabilitar al autenticación de dos factores.@@',
'(not set)' => '(sin establecer)', '(not set)' => '(sin establecer)',
'A confirmation message has been sent to your new email address' => 'Se ha enviado un mensaje de confirmación a tu nueva dirección de correo electrónico', 'A confirmation message has been sent to your new email address' => 'Se ha enviado un mensaje de confirmación a tu nueva dirección de correo electrónico',
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Un mensaje ha sido enviado a tu dirección de correo electrónico. Contiene un vínculo de confirmación que tienes que seguir para completar el registro.', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Un mensaje ha sido enviado a tu dirección de correo electrónico. Contiene un vínculo de confirmación que tienes que seguir para completar el registro.',
@ -88,23 +106,23 @@ return [
'Delete account' => 'Eliminar cuenta', 'Delete account' => 'Eliminar cuenta',
'Description' => 'Descripción', 'Description' => 'Descripción',
'Didn\'t receive confirmation message?' => '¿No has recibido el mensaje de confirmación?', 'Didn\'t receive confirmation message?' => '¿No has recibido el mensaje de confirmación?',
'Disable Two-Factor Auth' => 'Desabilitar autenticación de dos factores',
'Disconnect' => 'Desconectar', 'Disconnect' => 'Desconectar',
'Don\'t have an account? Sign up!' => '¿No tienes cuenta? ¡Regístrate!', 'Don\'t have an account? Sign up!' => '¿No tienes cuenta? ¡Regístrate!',
'Email' => 'Correo electrónico', 'Email' => 'Correo electrónico',
'Email (public)' => 'Correo electrónico (público)', 'Email (public)' => 'Correo electrónico (público)',
'Enable' => 'Habilitar', 'Enable' => 'Habilitar',
'Enable Two-factor auth' => 'Habilitar autenticación de dos factores',
'Error occurred while changing password' => 'Se ha producido un error al cambiar la contraseña', 'Error occurred while changing password' => 'Se ha producido un error al cambiar la contraseña',
'Error occurred while confirming user' => 'Se ha producido un error al confirmar el usuario', 'Error occurred while confirming user' => 'Se ha producido un error al confirmar el usuario',
'Error occurred while deleting user' => 'Se ha producido un error al eliminar el usuario', 'Error occurred while deleting user' => 'Se ha producido un error al eliminar el usuario',
'Error sending registration message to "{email}". Please try again later.' => 'Ha ocurrido un error enviando el mensaje de registro a "{email}". Por favor inténtalo de nuevo más tarde.',
'Error sending welcome message to "{email}". Please try again later.' => 'Ha ocurrido un error al enviar el mensaje de bienvenida a "{email}". Por favor inténtalo de nuevo más tarde.',
'Finish' => 'Finalizar', 'Finish' => 'Finalizar',
'Forgot password?' => '¿Olvidaste la contraseña?', 'Forgot password?' => '¿Olvidaste la contraseña?',
'Gravatar email' => 'Correo electrónico Gravatar', 'Gravatar email' => 'Correo electrónico Gravatar',
'Hello' => 'Hola', 'Hello' => 'Hola',
'If you already registered, sign in and connect this account on settings page' => 'Si ya está registrados, inicie sesión y conecta esta cuenta en la página de configuración', 'If you already registered, sign in and connect this account on settings page' => 'Si ya estas registrado, inicia sesión y conecta esta cuenta en la página de configuración',
'If you cannot click the link, please try pasting the text into your browser' => 'Si tienes problemas, por favor, pegua la siguiente dirección URL en su navegador web', 'If you cannot click the link, please try pasting the text into your browser' => 'Si tienes problemas, por favor, pega la siguiente dirección URL en tu navegador web',
'If you did not make this request you can ignore this email' => 'PD: Si ha recibido este correo electrónico por error, simplemente elimínelo', 'If you did not make this request you can ignore this email' => 'PD: Si has recibido este correo electrónico por error, simplemente elimínalo',
'Impersonate this user' => 'Personificar este usuario', 'Impersonate this user' => 'Personificar este usuario',
'In order to complete your registration, please click the link below' => 'Para completar el registro, por favor haz clic en el siguiente enlance', 'In order to complete your registration, please click the link below' => 'Para completar el registro, por favor haz clic en el siguiente enlance',
'In order to complete your request, please click the link below' => 'Para completar tu petición, haz clic en el siguiente enlace', 'In order to complete your request, please click the link below' => 'Para completar tu petición, haz clic en el siguiente enlace',
@ -112,7 +130,6 @@ return [
'Information' => 'Información', 'Information' => 'Información',
'Invalid login or password' => 'Usuario o contraseña incorrectos', 'Invalid login or password' => 'Usuario o contraseña incorrectos',
'Invalid or expired link' => 'Enlace inválido o caducado', 'Invalid or expired link' => 'Enlace inválido o caducado',
'Invalid two-factor code' => 'Código de dos factores inválido',
'Invalid value' => 'Valor inválido', 'Invalid value' => 'Valor inválido',
'It will be deleted forever' => 'Será eliminado para siempre', 'It will be deleted forever' => 'Será eliminado para siempre',
'Items' => 'Elementos', 'Items' => 'Elementos',
@ -180,22 +197,13 @@ return [
'This account has already been connected to another user' => 'Esta cuenta ya está conectada con otro usuario', 'This account has already been connected to another user' => 'Esta cuenta ya está conectada con otro usuario',
'This email address has already been taken' => 'Esta cuenta de correo electrónico ya está siendo utilizada', 'This email address has already been taken' => 'Esta cuenta de correo electrónico ya está siendo utilizada',
'This username has already been taken' => 'El nombre de usuario ya está siendo utlizado', 'This username has already been taken' => 'El nombre de usuario ya está siendo utlizado',
'This will disable two-factor auth. Are you sure?' => 'Esto inhabilitará la autenticación de dos factores. Estás seguro?',
'Time zone' => 'Zona horaria', 'Time zone' => 'Zona horaria',
'Time zone is not valid' => 'La zona horaria no es válida', 'Time zone is not valid' => 'La zona horaria no es válida',
'Two Factor Authentication' => 'Autenticación de Dos Factores',
'Two factor successfully enabled.' => 'Autenticación de dos factores habilitada con éxito.',
'Two-Factor Authentication' => 'Autenticación de Dos Factores',
'Two-factor auth protects you against stolen credentials' => 'La autenticación te protege contra el robo de credenciales',
'Two-factor authentication code' => 'Código de doble autenticación',
'Two-factor authorization has been disabled.' => 'La autenticación de dos factores ha sido inhabilitada.',
'Two-factor code' => 'Código de dos factores',
'Unable to confirm user. Please, try again.' => 'No se ha podido confirmar el usuario. Por favor, inténtalo de nuevo.', 'Unable to confirm user. Please, try again.' => 'No se ha podido confirmar el usuario. Por favor, inténtalo de nuevo.',
'Unable to create an account.' => 'No se ha podido crear la cuenta.', 'Unable to create an account.' => 'No se ha podido crear la cuenta.',
'Unable to create authorization item.' => 'No se puede actualizar el elemento de autorización.', 'Unable to create authorization item.' => 'No se puede actualizar el elemento de autorización.',
'Unable to create new authorization rule.' => 'Ha sido imposible crear la nueva regla de autenticación.', 'Unable to create new authorization rule.' => 'Ha sido imposible crear la nueva regla de autenticación.',
'Unable to delete user. Please, try again later.' => 'No se ha podido eliminar el usuario. Por favor, inténtalo más tarde.', 'Unable to delete user. Please, try again later.' => 'No se ha podido eliminar el usuario. Por favor, inténtalo más tarde.',
'Unable to disable two-factor authorization.' => 'Ha sido imposible inhabilitar al autenticación de dos factores.',
'Unable to remove authorization item.' => 'No se ha podido eliminar el elemento de autorización.', 'Unable to remove authorization item.' => 'No se ha podido eliminar el elemento de autorización.',
'Unable to send confirmation link' => 'No se ha podido enviar el enlace de confirmación', 'Unable to send confirmation link' => 'No se ha podido enviar el enlace de confirmación',
'Unable to send recovery message to the user' => 'Ha sido imposible enviar el email de recuperación de contraseña', 'Unable to send recovery message to the user' => 'Ha sido imposible enviar el email de recuperación de contraseña',
@ -211,7 +219,9 @@ return [
'Update rule' => 'Actualiza regla', 'Update rule' => 'Actualiza regla',
'Update user account' => 'Actualizar cuenta', 'Update user account' => 'Actualizar cuenta',
'Updated at' => 'Actualizado el', 'Updated at' => 'Actualizado el',
'User account could not be created.' => 'La cuenta de usuario no ha podido ser creada.',
'User block status has been updated.' => 'El estado de bloqueo del usuario ha sido actualizado.', 'User block status has been updated.' => 'El estado de bloqueo del usuario ha sido actualizado.',
'User could not be registered.' => 'El usuario no ha podido ser registrado.',
'User has been confirmed' => 'El usuario ha sido confirmado', 'User has been confirmed' => 'El usuario ha sido confirmado',
'User has been created' => 'El usuario ha sido creado', 'User has been created' => 'El usuario ha sido creado',
'User has been deleted' => 'El usuario ha sido eliminado', 'User has been deleted' => 'El usuario ha sido eliminado',

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -24,12 +24,12 @@ return [
'Cancel' => '', 'Cancel' => '',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
'Close' => '', 'Close' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error sending registration message to "{email}". Please try again later.' => '', 'Error sending registration message to "{email}". Please try again later.' => '',
'Error sending welcome message to "{email}". Please try again later.' => '', 'Error sending welcome message to "{email}". Please try again later.' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Last login' => '', 'Last login' => '',
'Never' => '', 'Never' => '',
'Required "key" cannot be empty.' => '', 'Required "key" cannot be empty.' => '',
@ -39,15 +39,13 @@ return [
'Send password recovery email' => '', 'Send password recovery email' => '',
'The "recaptcha" component must be configured.' => '', 'The "recaptcha" component must be configured.' => '',
'The verification code is incorrect.' => '', 'The verification code is incorrect.' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '', 'Unable to disable Two factor authentication.' => '',
'Two-factor code' => '',
'Unable to disable two-factor authorization.' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
'User account could not be created.' => '', 'User account could not be created.' => '',
'User could not be registered.' => '', 'User could not be registered.' => '',
@ -58,6 +56,18 @@ return [
'{0} cannot be blank.' => '', '{0} cannot be blank.' => '',
'A message has been sent to your email address. ' => '@@Üzenet érkezett az e-mail címedre.@@', 'A message has been sent to your email address. ' => '@@Üzenet érkezett az e-mail címedre.@@',
'Awesome, almost there. ' => '@@Szuper, majdnem kész.@@', 'Awesome, almost there. ' => '@@Szuper, majdnem kész.@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@A cím megerősítéséhez nem tudtuk újra elküldeni az e-mailt.@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@A cím megerősítéséhez nem tudtuk újra elküldeni az e-mailt.@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Megerősítő linkeket küldtünk régi és új e-mail címekre.@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@Megerősítő linkeket küldtünk régi és új e-mail címekre.@@',
'(not set)' => '(nincs beállítva)', '(not set)' => '(nincs beállítva)',

View File

@ -17,49 +17,43 @@
* NOTE: this file must be saved in UTF-8 encoding. * NOTE: this file must be saved in UTF-8 encoding.
*/ */
return [ return [
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => '', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'È stato inviato un messaggio al tuo indirizzo email. Contiene un collegamento di verifica che devi aprire per completare la registrazione.',
'Are you sure you wish to send a password recovery email to this user?' => '', 'Are you sure you wish to send a password recovery email to this user?' => 'Sicuro di voler inviare un email di recupero password a questo utente?',
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => '', 'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Fantastico, ci siamo quasi. Ora devi solo visitare il collegamento di conferma che è stato inviato al tuo nuovo indirizzo email.',
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => '', 'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Fantastico, ci siamo quasi. Ora devi solo visitare il collegamento di conferma che è stato inviato al tuo vecchio indirizzo email.',
'Cancel' => '', 'Cancel' => 'Annulla',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'Impossibile assegnare il ruolo "{0}" perché l\'AuthManager non è configurato nella applicazione da console.',
'Close' => '', 'Close' => 'Chiudi',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => 'Disabilita autenticazione a due fattori',
'Enable' => '', 'Enable' => 'Abilita',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => 'Abilita l\'autenticazione a due fattori',
'Error sending registration message to "{email}". Please try again later.' => '', 'Error sending registration message to "{email}". Please try again later.' => 'C\'è stato un errore nell\'invio del messaggio di registrazione all\'indirizzo "{email}". Per favore ritenta più tardi.',
'Error sending welcome message to "{email}". Please try again later.' => '', 'Error sending welcome message to "{email}". Please try again later.' => 'C\'è stato un errore nell\'invio del messaggio di benvenuto all\'indirizzo "{email}". Per favore ritenta più tardi.',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => 'Il codice dell\'autenticazione a due fattori non è valido',
'Last login' => '', 'Last login' => 'Ultimo accesso',
'Never' => '', 'Never' => 'Mai',
'Required "key" cannot be empty.' => '', 'Required "key" cannot be empty.' => 'Il campo "chiave" è richiesto, non può essere vuoto.',
'Required "secret" cannot be empty.' => '', 'Required "secret" cannot be empty.' => 'Il campo "segreto" è richiesto, non può essere vuoto.',
'Role "{0}" not found. Creating it.' => '', 'Role "{0}" not found. Creating it.' => 'Ruolo "{0}" non trovato. È stato creato.',
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Scansiona il codice QR con l\'applicazione Google Authenticator, poi inserisci il codice temporaneo nel riquadro ed invia.',
'Send password recovery email' => '', 'Send password recovery email' => 'Invia email di recupero password',
'The "recaptcha" component must be configured.' => '', 'The "recaptcha" component must be configured.' => 'Occorre configurare il componente "recaptcha".',
'The verification code is incorrect.' => '', 'The verification code is incorrect.' => 'Il codice di verifica non è corretto.',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => 'Stai per disabilitare l\'autenticazione a due fattori. Sei sicuro?',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => 'Autenticazione a due fattori (2FA)',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => 'Codice di autenticazione a due fattori',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => 'Autenticazione a due fattori disabilitata.',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => 'L\'autenticazione a due fattori può proteggerti dal furto di credenziali',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => 'Autenticazione a due fattori abilitata con successo.',
'Two-factor authorization has been disabled.' => '', 'Unable to disable Two factor authentication.' => 'Impossibile disabilitare l\'autenticazione a due fattori.',
'Two-factor code' => '', 'Unable to send recovery message to the user' => 'Impossibile inviare il messaggio di recupero password all\'utente',
'Unable to disable two-factor authorization.' => '', 'User account could not be created.' => 'Impossibile creare il nuovo utente.',
'Unable to send recovery message to the user' => '', 'User could not be registered.' => 'Impossibile registrare l\'utente.',
'User account could not be created.' => '', 'User not found.' => 'Utente non trovato.',
'User could not be registered.' => '', 'Verification failed. Please, enter new code.' => 'Verifica fallita. Per favore inserisci un nuovo codice.',
'User not found.' => '', 'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Non siamo riusciti ad inviare una email di conferma al tuo indirizzo. Per favore verifica che sia corretto e che non sia già stato confermato.',
'Verification failed. Please, enter new code.' => '', 'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Abbiamo inviato un link di conferma sia al vecchio che al nuovo indirizzo email. Devi visitare entrambi i link per completare la richiesta.',
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => '', '{0} cannot be blank.' => '{0} non può essere vuoto.',
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => '',
'{0} cannot be blank.' => '',
'A message has been sent to your email address. ' => '@@È stato inviato un messaggio al tuo indirizzo email@@',
'Awesome, almost there. ' => '@@Fantastico, ci siamo quasi. @@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@Non è stato possibile reinviare l\'email per confermare il tuo indirizzo. @@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Abbiamo inviato un link di conferma sia al nuovo che al vecchio indirizzo email. @@',
'(not set)' => '(non impostato)', '(not set)' => '(non impostato)',
'A confirmation message has been sent to your new email address' => 'È stato inviato un messaggio di conferma al tuo nuovo indirizzo email', 'A confirmation message has been sent to your new email address' => 'È stato inviato un messaggio di conferma al tuo nuovo indirizzo email',
'A new confirmation link has been sent' => 'È stato inviato un nuovo link di conferma', 'A new confirmation link has been sent' => 'È stato inviato un nuovo link di conferma',
@ -198,7 +192,7 @@ return [
'There is neither role nor permission with name "{0}"' => 'Non esiste un ruolo o permesso di nome "{0}', 'There is neither role nor permission with name "{0}"' => 'Non esiste un ruolo o permesso di nome "{0}',
'This account has already been connected to another user' => 'Questo account è già stato associato ad un altro utente', 'This account has already been connected to another user' => 'Questo account è già stato associato ad un altro utente',
'This email address has already been taken' => 'Questo indirizzo email è già stato registrato', 'This email address has already been taken' => 'Questo indirizzo email è già stato registrato',
'This username has already been taken' => 'Questo nome utente è già stato registraot', 'This username has already been taken' => 'Questo nome utente è già stato registrato',
'Time zone' => 'Fuso orario', 'Time zone' => 'Fuso orario',
'Time zone is not valid' => 'Il fuso orario non è valido', 'Time zone is not valid' => 'Il fuso orario non è valido',
'Unable to confirm user. Please, try again.' => 'Impossibile confermare l\'utente, per favore ritenta.', 'Unable to confirm user. Please, try again.' => 'Impossibile confermare l\'utente, per favore ritenta.',

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -19,18 +19,40 @@
return [ return [
'Are you sure you wish to send a password recovery email to this user?' => '', 'Are you sure you wish to send a password recovery email to this user?' => '',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
'Disable two factor authentication' => '',
'Enable two factor authentication' => '',
'Error sending registration message to "{email}". Please try again later.' => '', 'Error sending registration message to "{email}". Please try again later.' => '',
'Error sending welcome message to "{email}". Please try again later.' => '', 'Error sending welcome message to "{email}". Please try again later.' => '',
'Invalid two factor authentication code' => '',
'Required "key" cannot be empty.' => '', 'Required "key" cannot be empty.' => '',
'Required "secret" cannot be empty.' => '', 'Required "secret" cannot be empty.' => '',
'Role "{0}" not found. Creating it.' => '', 'Role "{0}" not found. Creating it.' => '',
'Send password recovery email' => '', 'Send password recovery email' => '',
'The "recaptcha" component must be configured.' => '', 'The "recaptcha" component must be configured.' => '',
'The verification code is incorrect.' => '', 'The verification code is incorrect.' => '',
'This will disable two factor authentication. Are you sure?' => '',
'Two Factor Authentication (2FA)' => '',
'Two factor authentication code' => '',
'Two factor authentication has been disabled.' => '',
'Two factor authentication protects you against stolen credentials' => '',
'Two factor authentication successfully enabled.' => '',
'Unable to disable Two factor authentication.' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
'User account could not be created.' => '', 'User account could not be created.' => '',
'User could not be registered.' => '', 'User could not be registered.' => '',
'{0} cannot be blank.' => '', '{0} cannot be blank.' => '',
'Disable Two-Factor Auth' => '@@Wyłącz uwierzytelnianie dwuetapowe@@',
'Enable Two-factor auth' => '@@Włącz uwierzytelnianie dwuetapowe@@',
'Invalid two-factor code' => '@@Nieprawidłowy kod uwierzytelniania dwuetapowego@@',
'This will disable two-factor auth. Are you sure?' => '@@To wyłączy uwierzytelnianie dwuetapowe. Czy jesteś pewny?@@',
'Two Factor Authentication' => '@@Uwierzytelnianie dwuetapowe@@',
'Two factor successfully enabled.' => '@@Dwuetapowe uwierzytelnianie poprawnie włączone.@@',
'Two-Factor Authentication' => '@@Uwierzytelnianie dwuetapowe@@',
'Two-factor auth protects you against stolen credentials' => '@@Uwierzytelnianie dwuetapowe chroni Cię przed kradzieżą danych logowania@@',
'Two-factor authentication code' => '@@Kod uwierzytelniania dwuetapowego@@',
'Two-factor authorization has been disabled.' => '@@Dwuetapowa autoryzacja została wyłączona.@@',
'Two-factor code' => '@@Kod dwuetapowy@@',
'Unable to disable two-factor authorization.' => '@@Nie można wyłączyć dwuetapowej autoryzacji.@@',
'(not set)' => '(nie podano)', '(not set)' => '(nie podano)',
'A confirmation message has been sent to your new email address' => 'Potwierdzenie zostało wysłane na Twój nowy adres email', 'A confirmation message has been sent to your new email address' => 'Potwierdzenie zostało wysłane na Twój nowy adres email',
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Wysłaliśmy wiadomość na Twój adres email, zawierającą link aktywacyjny, w który musisz kliknąć, aby zakończyć rejestrację.', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Wysłaliśmy wiadomość na Twój adres email, zawierającą link aktywacyjny, w który musisz kliknąć, aby zakończyć rejestrację.',
@ -96,13 +118,11 @@ return [
'Delete account' => 'Usuń konto', 'Delete account' => 'Usuń konto',
'Description' => 'Opis', 'Description' => 'Opis',
'Didn\'t receive confirmation message?' => 'Nie otrzymałeś emaila aktywacyjnego?', 'Didn\'t receive confirmation message?' => 'Nie otrzymałeś emaila aktywacyjnego?',
'Disable Two-Factor Auth' => 'Wyłącz uwierzytelnianie dwuetapowe',
'Disconnect' => 'Odłącz', 'Disconnect' => 'Odłącz',
'Don\'t have an account? Sign up!' => 'Nie masz jeszcze konto? Zarejestruj się!', 'Don\'t have an account? Sign up!' => 'Nie masz jeszcze konto? Zarejestruj się!',
'Email' => 'Email', 'Email' => 'Email',
'Email (public)' => 'Email (publiczny)', 'Email (public)' => 'Email (publiczny)',
'Enable' => 'Włącz', 'Enable' => 'Włącz',
'Enable Two-factor auth' => 'Włącz uwierzytelnianie dwuetapowe',
'Error occurred while changing password' => 'Wystąpił błąd podczas zmiany hasła', 'Error occurred while changing password' => 'Wystąpił błąd podczas zmiany hasła',
'Error occurred while confirming user' => 'Wystąpił błąd podczas aktywacji użytkownika', 'Error occurred while confirming user' => 'Wystąpił błąd podczas aktywacji użytkownika',
'Error occurred while deleting user' => 'Wystąpił błąd podczas usuwania użytkownika', 'Error occurred while deleting user' => 'Wystąpił błąd podczas usuwania użytkownika',
@ -120,7 +140,6 @@ return [
'Information' => 'Informacja', 'Information' => 'Informacja',
'Invalid login or password' => 'Nieprawidłowy login lub hasło', 'Invalid login or password' => 'Nieprawidłowy login lub hasło',
'Invalid or expired link' => 'Nieprawidłowy lub zdezaktualizowany link', 'Invalid or expired link' => 'Nieprawidłowy lub zdezaktualizowany link',
'Invalid two-factor code' => 'Nieprawidłowy kod uwierzytelniania dwuetapowego',
'Invalid value' => 'Nieprawidłowa wartość', 'Invalid value' => 'Nieprawidłowa wartość',
'It will be deleted forever' => 'Usuniętych kont nie można przywrócić', 'It will be deleted forever' => 'Usuniętych kont nie można przywrócić',
'Items' => 'Elementy', 'Items' => 'Elementy',
@ -182,22 +201,13 @@ return [
'This account has already been connected to another user' => 'To konto zostało już dołączone do innego użytkownika', 'This account has already been connected to another user' => 'To konto zostało już dołączone do innego użytkownika',
'This email address has already been taken' => 'Ten adres email jest już używany', 'This email address has already been taken' => 'Ten adres email jest już używany',
'This username has already been taken' => 'Ta nazwa użytkownika jest już zajęta', 'This username has already been taken' => 'Ta nazwa użytkownika jest już zajęta',
'This will disable two-factor auth. Are you sure?' => 'To wyłączy uwierzytelnianie dwuetapowe. Czy jesteś pewny?',
'Time zone' => 'Strefa czasowa', 'Time zone' => 'Strefa czasowa',
'Time zone is not valid' => 'Strefa czasowa jest niepoprawna', 'Time zone is not valid' => 'Strefa czasowa jest niepoprawna',
'Two Factor Authentication' => 'Uwierzytelnianie dwuetapowe',
'Two factor successfully enabled.' => 'Dwuetapowe uwierzytelnianie poprawnie włączone.',
'Two-Factor Authentication' => 'Uwierzytelnianie dwuetapowe',
'Two-factor auth protects you against stolen credentials' => 'Uwierzytelnianie dwuetapowe chroni Cię przed kradzieżą danych logowania',
'Two-factor authentication code' => 'Kod uwierzytelniania dwuetapowego',
'Two-factor authorization has been disabled.' => 'Dwuetapowa autoryzacja została wyłączona.',
'Two-factor code' => 'Kod dwuetapowy',
'Unable to confirm user. Please, try again.' => 'Nie można aktywować użytkownika. Proszę spróbować ponownie.', 'Unable to confirm user. Please, try again.' => 'Nie można aktywować użytkownika. Proszę spróbować ponownie.',
'Unable to create an account.' => 'Nie można utworzyć konta.', 'Unable to create an account.' => 'Nie można utworzyć konta.',
'Unable to create authorization item.' => 'Nie można utworzyć celu autoryzacji.', 'Unable to create authorization item.' => 'Nie można utworzyć celu autoryzacji.',
'Unable to create new authorization rule.' => 'Nie można utworzyć zasady autoryzacji.', 'Unable to create new authorization rule.' => 'Nie można utworzyć zasady autoryzacji.',
'Unable to delete user. Please, try again later.' => 'Nie można usunąć użytkownika. Proszę spróbować ponownie później.', 'Unable to delete user. Please, try again later.' => 'Nie można usunąć użytkownika. Proszę spróbować ponownie później.',
'Unable to disable two-factor authorization.' => 'Nie można wyłączyć dwuetapowej autoryzacji.',
'Unable to remove authorization item.' => 'Nie można usunąć celu autoryzacji.', 'Unable to remove authorization item.' => 'Nie można usunąć celu autoryzacji.',
'Unable to send confirmation link' => 'Nie można wysłać linka aktywacyjnego', 'Unable to send confirmation link' => 'Nie można wysłać linka aktywacyjnego',
'Unable to update authorization item.' => 'Nie można zaktualizować celu autoryzacji.', 'Unable to update authorization item.' => 'Nie można zaktualizować celu autoryzacji.',

View File

@ -17,6 +17,36 @@
* NOTE: this file must be saved in UTF-8 encoding. * NOTE: this file must be saved in UTF-8 encoding.
*/ */
return [ return [
'Disable two factor authentication' => '',
'Enable two factor authentication' => '',
'Invalid two factor authentication code' => '',
'This will disable two factor authentication. Are you sure?' => '',
'Two Factor Authentication (2FA)' => '',
'Two factor authentication code' => '',
'Two factor authentication has been disabled.' => '',
'Two factor authentication protects you against stolen credentials' => '',
'Two factor authentication successfully enabled.' => '',
'Unable to disable Two factor authentication.' => '',
'A message has been sent to your email address. ' => '@@Uma mensagem foi enviada para o seu endereço de e-mail.@@',
'Awesome, almost there. ' => '@@Incrível, quase lá.@@',
'Class "{0}" does not exist' => '@@A classe "{0}" não existe@@',
'Disable Two-Factor Auth' => '@@Desabilitar autenticação em dois fatores@@',
'Enable Two-factor auth' => '@@Habilitar autenticação em dois fatores@@',
'Invalid two-factor code' => '@@Código de dois fatores inválido@@',
'Registration ip' => '@@Registro ip@@',
'Rule class can not be instantiated' => '@@A classe de regras não pode ser instanciada@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@A classe de regras deve estender de "yii\\rbac\\Rule"@@',
'This will disable two-factor auth. Are you sure?' => '@@Isso desativará a autenticação de dois fatores. Você tem certeza?@@',
'Two Factor Authentication' => '@@Autenticação de dois fatores@@',
'Two factor successfully enabled.' => '@@Dois fatores habilitados com sucesso.@@',
'Two-Factor Authentication' => '@@Autenticação de dois fatores@@',
'Two-factor auth protects you against stolen credentials' => '@@Autenticação de dois fatores protege você contra credenciais roubadas@@',
'Two-factor authentication code' => '@@Código de autenticação de dois fatores@@',
'Two-factor authorization has been disabled.' => '@@A autorização de dois fatores foi desabilitada.@@',
'Two-factor code' => '@@Código de dois fatores@@',
'Unable to disable two-factor authorization.' => '@@Não é possível desabilitar a autorização de dois fatores.@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@Não poderíamos re-enviar o correio para confirmar o seu endereço.@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Enviamos links de confirmação para endereços de e-mail antigo e novo.@@',
'(not set)' => '(não informado)', '(not set)' => '(não informado)',
'A confirmation message has been sent to your new email address' => 'Uma mensagem de confirmação foi enviada para seu novo endereço de e-mail', 'A confirmation message has been sent to your new email address' => 'Uma mensagem de confirmação foi enviada para seu novo endereço de e-mail',
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Uma mensagem foi enviada para o seu endereço de e-mail. Ele contém um link de confirmação que você deve clicar para completar o registro.', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Uma mensagem foi enviada para o seu endereço de e-mail. Ele contém um link de confirmação que você deve clicar para completar o registro.',
@ -84,13 +114,11 @@ return [
'Delete account' => 'Excluir conta', 'Delete account' => 'Excluir conta',
'Description' => 'Descrição', 'Description' => 'Descrição',
'Didn\'t receive confirmation message?' => 'Não recebeu mensagem de confirmação?', 'Didn\'t receive confirmation message?' => 'Não recebeu mensagem de confirmação?',
'Disable Two-Factor Auth' => 'Desabilitar autenticação em dois fatores',
'Disconnect' => 'Desconectar', 'Disconnect' => 'Desconectar',
'Don\'t have an account? Sign up!' => 'Não tem uma conta? Inscrever-se!', 'Don\'t have an account? Sign up!' => 'Não tem uma conta? Inscrever-se!',
'Email' => 'Email', 'Email' => 'Email',
'Email (public)' => 'Email (publico)', 'Email (public)' => 'Email (publico)',
'Enable' => 'Habilitado', 'Enable' => 'Habilitado',
'Enable Two-factor auth' => 'Habilitar autenticação em dois fatores',
'Error occurred while changing password' => 'Ocorreu um erro ao mudar a senha', 'Error occurred while changing password' => 'Ocorreu um erro ao mudar a senha',
'Error occurred while confirming user' => 'Ocorreu um erro ao confirmar o usuário', 'Error occurred while confirming user' => 'Ocorreu um erro ao confirmar o usuário',
'Error occurred while deleting user' => 'Ocorreu um erro ao excluir o usuário', 'Error occurred while deleting user' => 'Ocorreu um erro ao excluir o usuário',
@ -110,7 +138,6 @@ return [
'Information' => 'Informação', 'Information' => 'Informação',
'Invalid login or password' => 'Login ou senha inválidos', 'Invalid login or password' => 'Login ou senha inválidos',
'Invalid or expired link' => 'Link inválido ou expirado', 'Invalid or expired link' => 'Link inválido ou expirado',
'Invalid two-factor code' => 'Código de dois fatores inválido',
'Invalid value' => 'Valor inválido', 'Invalid value' => 'Valor inválido',
'It will be deleted forever' => 'Ele será excluído para sempre', 'It will be deleted forever' => 'Ele será excluído para sempre',
'Items' => 'Itens', 'Items' => 'Itens',
@ -178,22 +205,13 @@ return [
'This account has already been connected to another user' => 'Esta conta já foi conectada a outro usuário', 'This account has already been connected to another user' => 'Esta conta já foi conectada a outro usuário',
'This email address has already been taken' => 'Este endereço de e-mail já foi feito', 'This email address has already been taken' => 'Este endereço de e-mail já foi feito',
'This username has already been taken' => 'Este nome de usuário já foi feito', 'This username has already been taken' => 'Este nome de usuário já foi feito',
'This will disable two-factor auth. Are you sure?' => 'Isso desativará a autenticação de dois fatores. Você tem certeza?',
'Time zone' => 'Fuso horário', 'Time zone' => 'Fuso horário',
'Time zone is not valid' => 'O fuso horário não é válido', 'Time zone is not valid' => 'O fuso horário não é válido',
'Two Factor Authentication' => 'Autenticação de dois fatores',
'Two factor successfully enabled.' => 'Dois fatores habilitados com sucesso.',
'Two-Factor Authentication' => 'Autenticação de dois fatores',
'Two-factor auth protects you against stolen credentials' => 'Autenticação de dois fatores protege você contra credenciais roubadas',
'Two-factor authentication code' => 'Código de autenticação de dois fatores',
'Two-factor authorization has been disabled.' => 'A autorização de dois fatores foi desabilitada.',
'Two-factor code' => 'Código de dois fatores',
'Unable to confirm user. Please, try again.' => 'Não é possível confirmar o usuário. Por favor, tente novamente.', 'Unable to confirm user. Please, try again.' => 'Não é possível confirmar o usuário. Por favor, tente novamente.',
'Unable to create an account.' => 'Não é possível criar uma conta.', 'Unable to create an account.' => 'Não é possível criar uma conta.',
'Unable to create authorization item.' => 'Não foi possível criar o item de autorização.', 'Unable to create authorization item.' => 'Não foi possível criar o item de autorização.',
'Unable to create new authorization rule.' => 'Não é possível criar uma nova regra de autorização.', 'Unable to create new authorization rule.' => 'Não é possível criar uma nova regra de autorização.',
'Unable to delete user. Please, try again later.' => 'Não é possível excluir o usuário. Por favor, tente novamente mais tarde.', 'Unable to delete user. Please, try again later.' => 'Não é possível excluir o usuário. Por favor, tente novamente mais tarde.',
'Unable to disable two-factor authorization.' => 'Não é possível desabilitar a autorização de dois fatores.',
'Unable to remove authorization item.' => 'Não é possível remover o item de autorização.', 'Unable to remove authorization item.' => 'Não é possível remover o item de autorização.',
'Unable to send confirmation link' => 'Não é possível enviar o link de confirmação', 'Unable to send confirmation link' => 'Não é possível enviar o link de confirmação',
'Unable to send recovery message to the user' => 'Não é possível enviar uma mensagem de recuperação para o usuário', 'Unable to send recovery message to the user' => 'Não é possível enviar uma mensagem de recuperação para o usuário',
@ -246,12 +264,4 @@ return [
'Your profile has been updated' => 'Seu perfil foi atualizado', 'Your profile has been updated' => 'Seu perfil foi atualizado',
'{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, MMMM dd, YYYY HH:mm}', '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, MMMM dd, YYYY HH:mm}',
'{0} cannot be blank.' => '{0} não pode estar em branco', '{0} cannot be blank.' => '{0} não pode estar em branco',
'A message has been sent to your email address. ' => 'Uma mensagem foi enviada para o seu endereço de e-mail.',
'Awesome, almost there. ' => 'Incrível, quase lá.',
'Class "{0}" does not exist' => 'A classe "{0}" não existe',
'Registration ip' => 'Registro ip',
'Rule class can not be instantiated' => 'A classe de regras não pode ser instanciada',
'Rule class must extend "yii\\rbac\\Rule"' => 'A classe de regras deve estender de "yii\\rbac\\Rule"',
'We couldn\'t re-send the mail to confirm your address. ' => 'Não poderíamos re-enviar o correio para confirmar o seu endereço.',
'We have sent confirmation links to both old and new email addresses. ' => 'Enviamos links de confirmação para endereços de e-mail antigo e novo.',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -24,12 +24,12 @@ return [
'Cancel' => '', 'Cancel' => '',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
'Close' => '', 'Close' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error sending registration message to "{email}". Please try again later.' => '', 'Error sending registration message to "{email}". Please try again later.' => '',
'Error sending welcome message to "{email}". Please try again later.' => '', 'Error sending welcome message to "{email}". Please try again later.' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Last login' => '', 'Last login' => '',
'Never' => '', 'Never' => '',
'Required "key" cannot be empty.' => '', 'Required "key" cannot be empty.' => '',
@ -39,15 +39,13 @@ return [
'Send password recovery email' => '', 'Send password recovery email' => '',
'The "recaptcha" component must be configured.' => '', 'The "recaptcha" component must be configured.' => '',
'The verification code is incorrect.' => '', 'The verification code is incorrect.' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '', 'Unable to disable Two factor authentication.' => '',
'Two-factor code' => '',
'Unable to disable two-factor authorization.' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
'User account could not be created.' => '', 'User account could not be created.' => '',
'User could not be registered.' => '', 'User could not be registered.' => '',
@ -58,6 +56,18 @@ return [
'{0} cannot be blank.' => '', '{0} cannot be blank.' => '',
'A message has been sent to your email address. ' => '@@A fost trimis un mesaj la adresa dvs. de e-mail.@@', 'A message has been sent to your email address. ' => '@@A fost trimis un mesaj la adresa dvs. de e-mail.@@',
'Awesome, almost there. ' => '@@Minunat, aproape acolo.@@', 'Awesome, almost there. ' => '@@Minunat, aproape acolo.@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@Nu am putut retrimite mesajul pentru a vă confirma adresa.@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@Nu am putut retrimite mesajul pentru a vă confirma adresa.@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Am trimis linkuri de confirmare adresa de e-mail vechi și cel noi.@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@Am trimis linkuri de confirmare adresa de e-mail vechi și cel noi.@@',
'(not set)' => '(nu este setat)', '(not set)' => '(nu este setat)',

View File

@ -17,55 +17,39 @@
* NOTE: this file must be saved in UTF-8 encoding. * NOTE: this file must be saved in UTF-8 encoding.
*/ */
return [ return [
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'На вашу электронную почту было отправлено сообщение со ссылкой подтверждения регистрации.', 'Disable two factor authentication' => 'Выключить двухфакторную авторизацию',
'Are you sure you wish to send a password recovery email to this user?' => 'Вы уверены, что хотите отправить письмо с восстановлением пароля на почту этому пользователю?', 'Enable two factor authentication' => 'Включить двухфакторную авторизацию',
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Замечательно, почти готово. Вам осталось перейти по ссылке подтверждения, отправленной на новый адрес вашей электронной почты.', 'Invalid two factor authentication code' => 'Неверный код двухфакторной авторизации',
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Замечательно, почти готово. Вам осталось перейти по ссылке подтверждения, отправленной на старый адрес вашей электронной почты.', 'This will disable two factor authentication. Are you sure?' => 'Двухфакторная авторизация будет отключена. Вы уверены?',
'Cancel' => 'Отменить', 'Two Factor Authentication (2FA)' => 'Двухфакторная авторизация (2FA)',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'В вашем консольном приложении не настроен AuthManager, поэтому не удалось назначить роль "{0}".', 'Two factor authentication code' => 'Код двухфакторной авторизации',
'Close' => 'Закрыть', 'Two factor authentication has been disabled.' => 'Двухфакторная авторизация отключена.',
'Disable Two-Factor Auth' => 'Отключить двухфакторную авторизацию', 'Two factor authentication protects you against stolen credentials' => вухфакторная авторизация защитит вас от кражи параметров доступа',
'Enable' => 'Включить', 'Two factor authentication successfully enabled.' => 'Двухфакторная авторизация успешно включена.',
'Enable Two-factor auth' => 'Включить двухфакторную авторизацию', 'Unable to disable Two factor authentication.' => 'Не удалось отключить двухфакторную авторизацию.',
'Error sending registration message to "{email}". Please try again later.' => 'Ошибка при отправке письма о регистрации на "{email}". Пожалуйста, попробуйте позже.',
'Error sending welcome message to "{email}". Please try again later.' => 'Ошибка при отправке приветственного письма на "{email}". Пожалуйста, попробуйте позже.',
'Invalid two-factor code' => 'Неверный код двухфакторной авторизации',
'Last login' => 'Последний вход',
'Never' => 'Никогда',
'Required "key" cannot be empty.' => 'Поле "key" не может быть пустым.',
'Required "secret" cannot be empty.' => 'Поле "secret" не может быть пустым.',
'Role "{0}" not found. Creating it.' => 'Роль "{0}" не найдена. Создаём её.',
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Просканируйте QR-код приложением Google Authenticator App, затем вставьте временный код в поле и отправьте.',
'Send password recovery email' => 'Отправить письмо с восстановлением пароля',
'The "recaptcha" component must be configured.' => 'Необходимо настроить компонент "recaptcha"',
'The verification code is incorrect.' => 'Неправильный код подтверждения.',
'This will disable two-factor auth. Are you sure?' => 'Вы уверены, что хотите отключить двухфакторную авторизацию?',
'Two Factor Authentication' => 'Двухфакторная авторизация',
'Two factor successfully enabled.' => 'Включена двухфакторная авторизация.',
'Two-Factor Authentication' => 'Двухфакторная авторизация',
'Two-factor auth protects you against stolen credentials' => 'Двухфакторная авторизация предотвращает кражу ваших данных для входа.',
'Two-factor authentication code' => 'Код двухфакторной авторизации',
'Two-factor authorization has been disabled.' => 'Двухфакторная авторизация отключена.',
'Two-factor code' => 'Код двухфакторной авторизации',
'Unable to disable two-factor authorization.' => 'Не удалось отключить двухфакторную авторизацию.',
'Unable to send recovery message to the user' => 'Не удалось отправить пользователю письмо восстановления',
'User account could not be created.' => 'Не удалось создать аккаунт для пользователя.',
'User could not be registered.' => 'Не удалось зарегистрировать пользователя.',
'User not found.' => 'Пользователь не найден.',
'Verification failed. Please, enter new code.' => 'Проверка не удалась. Пожауйста, введите новый код',
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Не удалось повторно отправить письмо для подтверждения вашего адреса электронной почты. Пожалуйста, проверьте, что ввели корректный адрес или что он ещё не был подтверждён.',
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Мы отправили письма на ваш старый и новый адреса. Вы должны перейти по обеим ссылкам, чтобы завершить процесс смены адреса.',
'{0} cannot be blank.' => '{0} не может быть пустым.',
'A message has been sent to your email address. ' => '@@Сообщение было отправлено на вашу электронную почту@@', 'A message has been sent to your email address. ' => '@@Сообщение было отправлено на вашу электронную почту@@',
'Awesome, almost there. ' => '@@Замечательно, почти готово!@@', 'Awesome, almost there. ' => '@@Замечательно, почти готово!@@',
'Class "{0}" does not exist' => '@@Класс "{0}" не найден@@', 'Class "{0}" does not exist' => '@@Класс "{0}" не найден@@',
'Disable Two-Factor Auth' => '@@Отключить двухфакторную авторизацию@@',
'Enable Two-factor auth' => '@@Включить двухфакторную авторизацию@@',
'Invalid two-factor code' => '@@Неверный код двухфакторной авторизации@@',
'Registration ip' => '@@IP при регистрации@@', 'Registration ip' => '@@IP при регистрации@@',
'Rule class can not be instantiated' => '@@Класс правила не может быть создан@@', 'Rule class can not be instantiated' => '@@Класс правила не может быть создан@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@Класс правила должен наследоваться от "yii\\rbac\\Rule"@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@Класс правила должен наследоваться от "yii\\rbac\\Rule"@@',
'This will disable two-factor auth. Are you sure?' => '@@Вы уверены, что хотите отключить двухфакторную авторизацию?@@',
'Two Factor Authentication' => '@@Двухфакторная авторизация@@',
'Two factor successfully enabled.' => '@@Включена двухфакторная авторизация.@@',
'Two-Factor Authentication' => '@@Двухфакторная авторизация@@',
'Two-factor auth protects you against stolen credentials' => '@@Двухфакторная авторизация предотвращает кражу ваших данных для входа.@@',
'Two-factor authentication code' => '@@Код двухфакторной авторизации@@',
'Two-factor authorization has been disabled.' => '@@Двухфакторная авторизация отключена.@@',
'Two-factor code' => '@@Код двухфакторной авторизации@@',
'Unable to disable two-factor authorization.' => '@@Не удалось отключить двухфакторную авторизацию.@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@Мы не можем повторно отправить письмо для подтверждения вашего адреса электронной почты.@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@Мы не можем повторно отправить письмо для подтверждения вашего адреса электронной почты.@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@Мы отправили письма на ваш старый и новый почтовые ящики. Вы должны перейти по обеим, чтобы завершить процесс смены адреса.@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@Мы отправили письма на ваш старый и новый почтовые ящики. Вы должны перейти по обеим, чтобы завершить процесс смены адреса.@@',
'(not set)' => '(не задано)', '(not set)' => '(не задано)',
'A confirmation message has been sent to your new email address' => 'На указанный адрес было отправлено письмо с дальнейшими инструкциями', 'A confirmation message has been sent to your new email address' => 'На указанный адрес было отправлено письмо с дальнейшими инструкциями',
'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'На вашу электронную почту было отправлено сообщение со ссылкой подтверждения регистрации.',
'A new confirmation link has been sent' => 'Ссылка для подтверждения была отправлена вам на почту', 'A new confirmation link has been sent' => 'Ссылка для подтверждения была отправлена вам на почту',
'A password will be generated automatically if not provided' => 'Если Вы не укажете пароль, он будет сгенерирован автоматически', 'A password will be generated automatically if not provided' => 'Если Вы не укажете пароль, он будет сгенерирован автоматически',
'Account' => 'Аккаунт', 'Account' => 'Аккаунт',
@ -81,6 +65,7 @@ return [
'Are you sure you want to delete this user?' => 'Вы действительно хотите удалить этого пользователя?', 'Are you sure you want to delete this user?' => 'Вы действительно хотите удалить этого пользователя?',
'Are you sure you want to switch to this user for the rest of this Session?' => 'Вы уверены, что хотите переключиться на этого пользователя до окончании текущей сессии?', 'Are you sure you want to switch to this user for the rest of this Session?' => 'Вы уверены, что хотите переключиться на этого пользователя до окончании текущей сессии?',
'Are you sure you want to unblock this user?' => 'Вы действительно хотите разблокировать этого пользователя?', 'Are you sure you want to unblock this user?' => 'Вы действительно хотите разблокировать этого пользователя?',
'Are you sure you wish to send a password recovery email to this user?' => 'Вы уверены, что хотите отправить письмо с восстановлением пароля на почту этому пользователю?',
'Are you sure? Deleted user can not be restored' => 'Вы уверены? Удалённый аккаунт невозможно будет восстановить', 'Are you sure? Deleted user can not be restored' => 'Вы уверены? Удалённый аккаунт невозможно будет восстановить',
'Are you sure? There is no going back' => 'Вы уверены? Это действие невозможно отменить', 'Are you sure? There is no going back' => 'Вы уверены? Это действие невозможно отменить',
'Assignments' => 'Назначения', 'Assignments' => 'Назначения',
@ -93,13 +78,18 @@ return [
'Authorization rule has been added.' => 'Правило авторизации добавлено.', 'Authorization rule has been added.' => 'Правило авторизации добавлено.',
'Authorization rule has been removed.' => 'Правило авторизации удалено.', 'Authorization rule has been removed.' => 'Правило авторизации удалено.',
'Authorization rule has been updated.' => 'Правило авторизации было обновлено.', 'Authorization rule has been updated.' => 'Правило авторизации было обновлено.',
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Замечательно, почти готово. Вам осталось перейти по ссылке подтверждения, отправленной на новый адрес вашей электронной почты.',
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Замечательно, почти готово. Вам осталось перейти по ссылке подтверждения, отправленной на старый адрес вашей электронной почты.',
'Bio' => 'О себе', 'Bio' => 'О себе',
'Block' => 'Блокировка', 'Block' => 'Блокировка',
'Block status' => 'Статус блокировки', 'Block status' => 'Статус блокировки',
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Заблокирован {0, date, d MMMM YYYY в HH:mm}', 'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Заблокирован {0, date, d MMMM YYYY в HH:mm}',
'Cancel' => 'Отменить',
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'В вашем консольном приложении не настроен AuthManager, поэтому не удалось назначить роль "{0}".',
'Change your avatar at Gravatar.com' => 'Изменить аватар на сайте Gravatar.com', 'Change your avatar at Gravatar.com' => 'Изменить аватар на сайте Gravatar.com',
'Children' => 'Дочерние элементы', 'Children' => 'Дочерние элементы',
'Class' => 'Класс', 'Class' => 'Класс',
'Close' => 'Закрыть',
'Complete password reset on {0}' => 'Смена пароля на сайте {0}', 'Complete password reset on {0}' => 'Смена пароля на сайте {0}',
'Confirm' => 'Подтвердить', 'Confirm' => 'Подтвердить',
'Confirm account on {0}' => 'Активация аккаунта на сайте {0}', 'Confirm account on {0}' => 'Активация аккаунта на сайте {0}',
@ -128,9 +118,12 @@ return [
'Don\'t have an account? Sign up!' => 'Нет аккаунта? Зарегистрируйтесь!', 'Don\'t have an account? Sign up!' => 'Нет аккаунта? Зарегистрируйтесь!',
'Email' => 'Email', 'Email' => 'Email',
'Email (public)' => 'Публичный email', 'Email (public)' => 'Публичный email',
'Enable' => 'Включить',
'Error occurred while changing password' => 'Произошла ошибка при смене пароля', 'Error occurred while changing password' => 'Произошла ошибка при смене пароля',
'Error occurred while confirming user' => 'Произошла ошибка при активации пользователя', 'Error occurred while confirming user' => 'Произошла ошибка при активации пользователя',
'Error occurred while deleting user' => 'Произошла ошибка при удалении пользователя', 'Error occurred while deleting user' => 'Произошла ошибка при удалении пользователя',
'Error sending registration message to "{email}". Please try again later.' => 'Ошибка при отправке письма о регистрации на "{email}". Пожалуйста, попробуйте позже.',
'Error sending welcome message to "{email}". Please try again later.' => 'Ошибка при отправке приветственного письма на "{email}". Пожалуйста, попробуйте позже.',
'Finish' => 'Завершить', 'Finish' => 'Завершить',
'Forgot password?' => 'Забыли пароль?', 'Forgot password?' => 'Забыли пароль?',
'Gravatar email' => 'Email для Gravatar', 'Gravatar email' => 'Email для Gravatar',
@ -149,12 +142,14 @@ return [
'It will be deleted forever' => 'Он будет удалён навсегда', 'It will be deleted forever' => 'Он будет удалён навсегда',
'Items' => 'Элементы', 'Items' => 'Элементы',
'Joined on {0, date}' => 'Зарегистрирован {0, date}', 'Joined on {0, date}' => 'Зарегистрирован {0, date}',
'Last login' => 'Последний вход',
'Location' => 'Местоположение', 'Location' => 'Местоположение',
'Login' => 'Логин', 'Login' => 'Логин',
'Logout' => 'Выйти', 'Logout' => 'Выйти',
'Manage users' => 'Управление пользователями', 'Manage users' => 'Управление пользователями',
'Name' => 'Имя', 'Name' => 'Имя',
'Networks' => 'Соцсети', 'Networks' => 'Соцсети',
'Never' => 'Никогда',
'New email' => 'Новый адрес электронной почты', 'New email' => 'Новый адрес электронной почты',
'New password' => 'Новый пароль', 'New password' => 'Новый пароль',
'New permission' => 'Новое разрешение', 'New permission' => 'Новое разрешение',
@ -182,7 +177,10 @@ return [
'Registration time' => 'Время регистрации', 'Registration time' => 'Время регистрации',
'Remember me next time' => 'Запомнить меня', 'Remember me next time' => 'Запомнить меня',
'Request new confirmation message' => 'Запросить новое подтверждающее письмо', 'Request new confirmation message' => 'Запросить новое подтверждающее письмо',
'Required "key" cannot be empty.' => 'Поле "key" не может быть пустым.',
'Required "secret" cannot be empty.' => 'Поле "secret" не может быть пустым.',
'Reset your password' => 'Сбросить пароль', 'Reset your password' => 'Сбросить пароль',
'Role "{0}" not found. Creating it.' => 'Роль "{0}" не найдена. Создаём её.',
'Roles' => 'Роли', 'Roles' => 'Роли',
'Rule' => 'Правило', 'Rule' => 'Правило',
'Rule class must extend "yii\\rbac\\Rule".' => 'Класс с правилами должен наследовать "yii\\rbac\\Rule".', 'Rule class must extend "yii\\rbac\\Rule".' => 'Класс с правилами должен наследовать "yii\\rbac\\Rule".',
@ -192,13 +190,17 @@ return [
'Rule {0} not found.' => 'Правило {0} не найдено.', 'Rule {0} not found.' => 'Правило {0} не найдено.',
'Rules' => 'Правила', 'Rules' => 'Правила',
'Save' => 'Сохранить', 'Save' => 'Сохранить',
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Просканируйте QR-код приложением Google Authenticator App, затем вставьте временный код в поле и отправьте.',
'Send password recovery email' => 'Отправить письмо с восстановлением пароля',
'Sign in' => 'Войти', 'Sign in' => 'Войти',
'Sign up' => 'Зарегистрироваться', 'Sign up' => 'Зарегистрироваться',
'Something went wrong' => 'Что-то пошло не так', 'Something went wrong' => 'Что-то пошло не так',
'Switch identities is disabled.' => 'Переключение на другой аккаунт отключено.', 'Switch identities is disabled.' => 'Переключение на другой аккаунт отключено.',
'Thank you for signing up on {0}' => 'Спасибо за регистрацию на сайте {0}', 'Thank you for signing up on {0}' => 'Спасибо за регистрацию на сайте {0}',
'Thank you, registration is now complete.' => 'Поздравляем, регистрация успешно завершена!', 'Thank you, registration is now complete.' => 'Поздравляем, регистрация успешно завершена!',
'The "recaptcha" component must be configured.' => 'Необходимо настроить компонент "recaptcha"',
'The confirmation link is invalid or expired. Please try requesting a new one.' => 'Ссылка для активации аккаунта неправильна или устарела. Вы можете запросить новую.', 'The confirmation link is invalid or expired. Please try requesting a new one.' => 'Ссылка для активации аккаунта неправильна или устарела. Вы можете запросить новую.',
'The verification code is incorrect.' => 'Неправильный код подтверждения.',
'There is neither role nor permission with name "{0}"' => 'Нет ни роли, ни разрешения с именем "{0}"', 'There is neither role nor permission with name "{0}"' => 'Нет ни роли, ни разрешения с именем "{0}"',
'This account has already been connected to another user' => 'Этот аккаунт уже привязан к другой учетной записи', 'This account has already been connected to another user' => 'Этот аккаунт уже привязан к другой учетной записи',
'This email address has already been taken' => 'Email уже используется', 'This email address has already been taken' => 'Email уже используется',
@ -212,6 +214,7 @@ return [
'Unable to delete user. Please, try again later.' => 'Не удалось удалить пользователя. Пожалуйста, попробуйте позже.', 'Unable to delete user. Please, try again later.' => 'Не удалось удалить пользователя. Пожалуйста, попробуйте позже.',
'Unable to remove authorization item.' => 'Не удалось удалить элемент авторизации.', 'Unable to remove authorization item.' => 'Не удалось удалить элемент авторизации.',
'Unable to send confirmation link' => 'Не удалось отправить ссылку для активации аккаунта.', 'Unable to send confirmation link' => 'Не удалось отправить ссылку для активации аккаунта.',
'Unable to send recovery message to the user' => 'Не удалось отправить пользователю письмо восстановления',
'Unable to update authorization item.' => 'Не удалось изменить элемент авторизации.', 'Unable to update authorization item.' => 'Не удалось изменить элемент авторизации.',
'Unable to update authorization rule.' => 'Не удалось изменить правило авторизации.', 'Unable to update authorization rule.' => 'Не удалось изменить правило авторизации.',
'Unable to update block status.' => 'Не удалось изменить статус блокировки.', 'Unable to update block status.' => 'Не удалось изменить статус блокировки.',
@ -224,17 +227,23 @@ return [
'Update rule' => 'Изменить правило', 'Update rule' => 'Изменить правило',
'Update user account' => 'Обновить аккаунт пользователя', 'Update user account' => 'Обновить аккаунт пользователя',
'Updated at' => 'Дата редактирования', 'Updated at' => 'Дата редактирования',
'User account could not be created.' => 'Не удалось создать аккаунт для пользователя.',
'User block status has been updated.' => 'Статус блокировки пользователя обновлён.', 'User block status has been updated.' => 'Статус блокировки пользователя обновлён.',
'User could not be registered.' => 'Не удалось зарегистрировать пользователя.',
'User has been confirmed' => 'Пользователь был активирован', 'User has been confirmed' => 'Пользователь был активирован',
'User has been created' => 'Пользователь был создан', 'User has been created' => 'Пользователь был создан',
'User has been deleted' => 'Пользователь был удалён', 'User has been deleted' => 'Пользователь был удалён',
'User is not found' => 'Пользователь не найден', 'User is not found' => 'Пользователь не найден',
'User not found.' => 'Пользователь не найден.',
'Username' => 'Имя пользователя', 'Username' => 'Имя пользователя',
'Users' => 'Пользователи', 'Users' => 'Пользователи',
'VKontakte' => 'ВКонтакте', 'VKontakte' => 'ВКонтакте',
'Verification failed. Please, enter new code.' => 'Проверка не удалась. Пожауйста, введите новый код',
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Не удалось повторно отправить письмо для подтверждения вашего адреса электронной почты. Пожалуйста, проверьте, что ввели корректный адрес или что он ещё не был подтверждён.',
'We have generated a password for you' => 'Мы сгенерировали новый пароль для вас', 'We have generated a password for you' => 'Мы сгенерировали новый пароль для вас',
'We have received a request to change the email address for your account on {0}' => 'Мы получили запрос на смену адреса электронной почты для вашего аккаунта на {0}', 'We have received a request to change the email address for your account on {0}' => 'Мы получили запрос на смену адреса электронной почты для вашего аккаунта на {0}',
'We have received a request to reset the password for your account on {0}' => 'Мы получили запрос на сброс пароля для вашего аккаунта на {0}', 'We have received a request to reset the password for your account on {0}' => 'Мы получили запрос на сброс пароля для вашего аккаунта на {0}',
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Мы отправили письма на ваш старый и новый адреса. Вы должны перейти по обеим ссылкам, чтобы завершить процесс смены адреса.',
'Website' => 'Веб-сайт', 'Website' => 'Веб-сайт',
'Welcome to {0}' => 'Добро пожаловать на {0}', 'Welcome to {0}' => 'Добро пожаловать на {0}',
'Yandex' => 'Яндекс', 'Yandex' => 'Яндекс',
@ -254,4 +263,5 @@ return [
'Your email address has been changed' => 'Ваш email был успешно изменён', 'Your email address has been changed' => 'Ваш email был успешно изменён',
'Your profile has been updated' => 'Настройки профиля были успешно сохранены', 'Your profile has been updated' => 'Настройки профиля были успешно сохранены',
'{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, d MMMM YYYY в HH:mm}', '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, d MMMM YYYY в HH:mm}',
'{0} cannot be blank.' => '{0} не может быть пустым.',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -84,13 +84,13 @@ return [
'Delete account' => '', 'Delete account' => '',
'Description' => '', 'Description' => '',
'Didn\'t receive confirmation message?' => '', 'Didn\'t receive confirmation message?' => '',
'Disable Two-Factor Auth' => '', 'Disable two factor authentication' => '',
'Disconnect' => '', 'Disconnect' => '',
'Don\'t have an account? Sign up!' => '', 'Don\'t have an account? Sign up!' => '',
'Email' => '', 'Email' => '',
'Email (public)' => '', 'Email (public)' => '',
'Enable' => '', 'Enable' => '',
'Enable Two-factor auth' => '', 'Enable two factor authentication' => '',
'Error occurred while changing password' => '', 'Error occurred while changing password' => '',
'Error occurred while confirming user' => '', 'Error occurred while confirming user' => '',
'Error occurred while deleting user' => '', 'Error occurred while deleting user' => '',
@ -110,7 +110,7 @@ return [
'Information' => '', 'Information' => '',
'Invalid login or password' => '', 'Invalid login or password' => '',
'Invalid or expired link' => '', 'Invalid or expired link' => '',
'Invalid two-factor code' => '', 'Invalid two factor authentication code' => '',
'Invalid value' => '', 'Invalid value' => '',
'It will be deleted forever' => '', 'It will be deleted forever' => '',
'Items' => '', 'Items' => '',
@ -178,22 +178,20 @@ return [
'This account has already been connected to another user' => '', 'This account has already been connected to another user' => '',
'This email address has already been taken' => '', 'This email address has already been taken' => '',
'This username has already been taken' => '', 'This username has already been taken' => '',
'This will disable two-factor auth. Are you sure?' => '', 'This will disable two factor authentication. Are you sure?' => '',
'Time zone' => '', 'Time zone' => '',
'Time zone is not valid' => '', 'Time zone is not valid' => '',
'Two Factor Authentication' => '', 'Two Factor Authentication (2FA)' => '',
'Two factor successfully enabled.' => '', 'Two factor authentication code' => '',
'Two-Factor Authentication' => '', 'Two factor authentication has been disabled.' => '',
'Two-factor auth protects you against stolen credentials' => '', 'Two factor authentication protects you against stolen credentials' => '',
'Two-factor authentication code' => '', 'Two factor authentication successfully enabled.' => '',
'Two-factor authorization has been disabled.' => '',
'Two-factor code' => '',
'Unable to confirm user. Please, try again.' => '', 'Unable to confirm user. Please, try again.' => '',
'Unable to create an account.' => '', 'Unable to create an account.' => '',
'Unable to create authorization item.' => '', 'Unable to create authorization item.' => '',
'Unable to create new authorization rule.' => '', 'Unable to create new authorization rule.' => '',
'Unable to delete user. Please, try again later.' => '', 'Unable to delete user. Please, try again later.' => '',
'Unable to disable two-factor authorization.' => '', 'Unable to disable Two factor authentication.' => '',
'Unable to remove authorization item.' => '', 'Unable to remove authorization item.' => '',
'Unable to send confirmation link' => '', 'Unable to send confirmation link' => '',
'Unable to send recovery message to the user' => '', 'Unable to send recovery message to the user' => '',
@ -249,9 +247,21 @@ return [
'A message has been sent to your email address. ' => '@@@@', 'A message has been sent to your email address. ' => '@@@@',
'Awesome, almost there. ' => '@@@@', 'Awesome, almost there. ' => '@@@@',
'Class "{0}" does not exist' => '@@@@', 'Class "{0}" does not exist' => '@@@@',
'Disable Two-Factor Auth' => '@@@@',
'Enable Two-factor auth' => '@@@@',
'Invalid two-factor code' => '@@@@',
'Registration ip' => '@@@@', 'Registration ip' => '@@@@',
'Rule class can not be instantiated' => '@@@@', 'Rule class can not be instantiated' => '@@@@',
'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@',
'This will disable two-factor auth. Are you sure?' => '@@@@',
'Two Factor Authentication' => '@@@@',
'Two factor successfully enabled.' => '@@@@',
'Two-Factor Authentication' => '@@@@',
'Two-factor auth protects you against stolen credentials' => '@@@@',
'Two-factor authentication code' => '@@@@',
'Two-factor authorization has been disabled.' => '@@@@',
'Two-factor code' => '@@@@',
'Unable to disable two-factor authorization.' => '@@@@',
'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@',
'We have sent confirmation links to both old and new email addresses. ' => '@@@@', 'We have sent confirmation links to both old and new email addresses. ' => '@@@@',
]; ];

View File

@ -81,7 +81,7 @@ $module = Yii::$app->getModule('user');
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span></button> aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"> <h4 class="modal-title" id="myModalLabel">
<?= Yii::t('usuario', 'Two Factor Authentication') ?></h4> <?= Yii::t('usuario', 'Two Factor Authentication (2FA)') ?></h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
... ...
@ -96,25 +96,25 @@ $module = Yii::$app->getModule('user');
</div> </div>
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"><?= Yii::t('usuario', 'Two-Factor Authentication') ?></h3> <h3 class="panel-title"><?= Yii::t('usuario', 'Two Factor Authentication (2FA)') ?></h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<p> <p>
<?= Yii::t('usuario', 'Two-factor auth protects you against stolen credentials') ?>. <?= Yii::t('usuario', 'Two factor authentication protects you against stolen credentials') ?>.
</p> </p>
<div class="text-right"> <div class="text-right">
<?= Html::a( <?= Html::a(
Yii::t('usuario', 'Disable Two-Factor Auth'), Yii::t('usuario', 'Disable two factor authentication'),
['two-factor-disable', 'id' => $model->getUser()->id], ['two-factor-disable', 'id' => $model->getUser()->id],
[ [
'id' => 'disable_tf_btn', 'id' => 'disable_tf_btn',
'class' => 'btn btn-warning ' . ($model->getUser()->auth_tf_enabled ? '' : 'hide'), 'class' => 'btn btn-warning ' . ($model->getUser()->auth_tf_enabled ? '' : 'hide'),
'data-method' => 'post', 'data-method' => 'post',
'data-confirm' => Yii::t('usuario', 'This will disable two-factor auth. Are you sure?'), 'data-confirm' => Yii::t('usuario', 'This will disable two factor authentication. Are you sure?'),
] ]
) ?> ) ?>
<?= Html::a( <?= Html::a(
Yii::t('usuario', 'Enable Two-factor auth'), Yii::t('usuario', 'Enable two factor authentication'),
'#tfmodal', '#tfmodal',
[ [
'id' => 'enable_tf_btn', 'id' => 'enable_tf_btn',

View File

@ -29,7 +29,7 @@
<div class="row"> <div class="row">
<div class="col-md-offset-3 col-md-6 text-center"> <div class="col-md-offset-3 col-md-6 text-center">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" id="tfcode" placeholder="<?= Yii::t('usuario', 'Two-factor code') ?>"/> <input type="text" class="form-control" id="tfcode" placeholder="<?= Yii::t('usuario', 'Two factor authentication code') ?>"/>
<span class="input-group-btn"> <span class="input-group-btn">
<button type="button" class="btn btn-primary btn-submit-code"> <button type="button" class="btn btn-primary btn-submit-code">
<?= Yii::t('usuario', 'Enable') ?> <?= Yii::t('usuario', 'Enable') ?>