Fix #20 Enhance the console command to create users so roles can be
assigned
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 1.0.14 - Work in progress
|
||||
- Fix #20: Allow the assignment of a role on user creation via console (tonydspaniard)
|
||||
- Fix #59: Add instructions to add rbac migration path (tonydspaniard)
|
||||
- Fix #68: Fix user events documentation and events raised from User model (tonydspaniard)
|
||||
- Fix #69: Log level when user can't register should be L_ERROR (tonydspaniard)
|
||||
|
||||
@ -28,10 +28,11 @@ How to Use Them
|
||||
#### user/create
|
||||
|
||||
If password is not set, it will automatically generate it. The newly created user will receive an email message with its
|
||||
new credentials.
|
||||
new credentials. If a role is provided, it will assign it to the user. Is important not note, that if the role doesn't
|
||||
exist, the command will create it.
|
||||
|
||||
```php
|
||||
./yii user/create <email> <username> [password]
|
||||
./yii user/create <email> <username> [password] [role]
|
||||
```
|
||||
|
||||
#### user/confirm
|
||||
|
||||
@ -23,7 +23,7 @@ class CreateController extends Controller
|
||||
{
|
||||
use ContainerAwareTrait;
|
||||
|
||||
public function actionIndex($email, $username, $password = null)
|
||||
public function actionIndex($email, $username, $password = null, $role = null)
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = $this->make(
|
||||
@ -35,6 +35,11 @@ class CreateController extends Controller
|
||||
|
||||
if ($this->make(UserCreateService::class, [$user, $mailService])->run()) {
|
||||
$this->stdout(Yii::t('usuario', 'User has been created') . "!\n", Console::FG_GREEN);
|
||||
|
||||
if (null !== $role) {
|
||||
$this->assignRole($user, $role);
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->stdout(Yii::t('usuario', 'Please fix following errors:') . "\n", Console::FG_RED);
|
||||
foreach ($user->errors as $errors) {
|
||||
@ -44,4 +49,27 @@ class CreateController extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function assignRole(User $user, $role)
|
||||
{
|
||||
$auth = Yii::$app->getAuthManager();
|
||||
if (false === $auth) {
|
||||
$this->stdout(
|
||||
Yii::t(
|
||||
'usuario',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.',
|
||||
$role
|
||||
) . "\n",
|
||||
Console::FG_RED
|
||||
);
|
||||
} else {
|
||||
$userRole = $auth->getRole($role);
|
||||
if (null === $userRole) {
|
||||
$this->stdout(Yii::t('usuario', 'Role "{0}" not found. Creating it.') . "!\n", Console::FG_GREEN);
|
||||
$userRole = $auth->createRole($role);
|
||||
$auth->add($userRole);
|
||||
}
|
||||
$auth->assign($userRole, $user->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -26,6 +26,7 @@ return [
|
||||
'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.' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Class' => '',
|
||||
'Close' => '',
|
||||
'Create new rule' => '',
|
||||
@ -38,6 +39,7 @@ return [
|
||||
'Last login' => '',
|
||||
'Never' => '',
|
||||
'New rule' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
'Rule name {0} is already in use' => '',
|
||||
'Rule {0} does not exists' => '',
|
||||
|
||||
@ -17,55 +17,13 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'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.',
|
||||
'Are you sure you want to switch to this user for the rest of this Session?' => 'Estás seguro que quieres intercambiarte por este usuario para el resto de esta sesión?',
|
||||
'Authentication rule class {0} can not be instantiated' => 'La clase de regla de autentificación {0} no puede ser instanciada',
|
||||
'Authorization rule has been added.' => 'Regla de autenticación insertada.',
|
||||
'Authorization rule has been removed.' => 'Regla de autenticación removida.',
|
||||
'Authorization rule has been updated.' => 'Regla de autenticación actualizada.',
|
||||
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Bien hecho, casi estamos. Ahora tienes que seguir el vínculo de confirmación que hemos enviado a tu nueva dirección de e-mail.',
|
||||
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Bien hecho, casi estamos. Ahora tienes que seguir el vínculo de confirmación que hemos enviado a tu antigua dirección de e-mail.',
|
||||
'Cancel' => 'Cancelar',
|
||||
'Class' => 'Clase',
|
||||
'Close' => 'Cerrar',
|
||||
'Create new rule' => 'Crear nueva regla',
|
||||
'Created at' => 'Creado el',
|
||||
'Disable Two-Factor Auth' => 'Desabilitar autenticación de dos factores',
|
||||
'Enable' => 'Habilitar',
|
||||
'Enable Two-factor auth' => 'Habilitar autenticación de dos factores',
|
||||
'Impersonate this user' => 'Personificar este usuario',
|
||||
'Invalid two-factor code' => 'Código de dos factores inválido',
|
||||
'Last login' => 'Último acceso',
|
||||
'Never' => 'Nunca',
|
||||
'New rule' => 'Nueva regla',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => 'La clase de Rule debe extender "yii\\rbac\\Rule"',
|
||||
'Rule name {0} is already in use' => 'El nombre {0} ya está siendo usado por otra regla',
|
||||
'Rule {0} does not exists' => 'La regla {0} no existe',
|
||||
'Rule {0} not found.' => 'Regla {0} no encontrada.',
|
||||
'Rules' => 'Reglas',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Escanee el QrCode con la aplicación Google Authenticator, luego inserte su código temporal en el campo de texto y envíe.',
|
||||
'Switch identities is disabled.' => 'Personificación de usuarios deshabilitada.',
|
||||
'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 create new authorization rule.' => 'Ha sido imposible crear la nueva regla de autenticación.',
|
||||
'Unable to disable two-factor authorization.' => 'Ha sido imposible inhabilitar al autenticación de dos factores.',
|
||||
'Unable to update authorization rule.' => 'Ha sido imposible actualizar la regla de autencicación.',
|
||||
'Update rule' => 'Actualiza regla',
|
||||
'Updated at' => 'Actualizado el',
|
||||
'User not found.' => 'Usuario no encontrado.',
|
||||
'Verification failed. Please, enter new code.' => 'Fallo en la verificación. Por favor, ingrese un nuevo código.',
|
||||
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'No hemos podido reenviar el e-mail para confirmar tu dirección de correo electrónico. Por favor, verifica si el e-mail es correcto o si éste ya ha sido confirmado.',
|
||||
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Hemos enviado enlaces de confirmación a tu antigua y nueva cuenta de correo electrónico. Debes seguir los dos vínculos para completar tu petición.',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'No se puede asignar rol "{0}" ya que AuthManager no ha sido configurado en tu aplicación de consola.',
|
||||
'Role "{0}" not found. Creating it.' => 'Rol "{0}" no encontrado. Creándolo.',
|
||||
'(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 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 new confirmation link has been sent' => 'Un nuevo vínculo de confirmación ha sido enviado',
|
||||
'A password will be generated automatically if not provided' => 'La contraseña se generará automaticamente si no ha sid',
|
||||
'A password will be generated automatically if not provided' => 'La contraseña se generará automaticamente si no ha sido provista',
|
||||
'Account' => 'Cuenta',
|
||||
'Account confirmation' => 'Confirmación de la cuenta',
|
||||
'Account details' => 'Detalles cuenta',
|
||||
@ -77,21 +35,31 @@ return [
|
||||
'Are you sure you want to block this user?' => '¿Estás seguro de querer bloquear a este usuario?',
|
||||
'Are you sure you want to confirm this user?' => '¿Estás seguro de querer confirmar a este usuario?',
|
||||
'Are you sure you want to delete this user?' => '¿Estas seguro de querer eliminar este usuario?',
|
||||
'Are you sure you want to switch to this user for the rest of this Session?' => 'Estás seguro que quieres intercambiarte por este usuario para el resto de esta sesión?',
|
||||
'Are you sure you want to unblock this user?' => '¿Estas seguro de querer desbloquear este usuario?',
|
||||
'Are you sure? Deleted user can not be restored' => '¿Estas seguro? Los usuarios eliminados no se pueden restaurar',
|
||||
'Are you sure? There is no going back' => '¿Estás seguro? No se podrá volver atrás',
|
||||
'Assignments' => 'Asignaciones',
|
||||
'Assignments have been updated' => 'Las asignaciones han sido actualizadas',
|
||||
'Auth item with such name already exists' => 'Ya existe un elemento de autorización con ese nombre',
|
||||
'Authentication rule class {0} can not be instantiated' => 'La clase de regla de autentificación {0} no puede ser instanciada',
|
||||
'Authorization item successfully created.' => 'El elemento de autorización ha sido creado con éxito.',
|
||||
'Authorization item successfully removed.' => 'El elemento de autorización ha sido eliminado con éxito.',
|
||||
'Authorization item successfully updated.' => 'El elemento de autorización ha sido actualizado con éxito.',
|
||||
'Authorization rule has been added.' => 'Regla de autenticación insertada.',
|
||||
'Authorization rule has been removed.' => 'Regla de autenticación removida.',
|
||||
'Authorization rule has been updated.' => 'Regla de autenticación actualizada.',
|
||||
'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => 'Bien hecho, casi estamos. Ahora tienes que seguir el vínculo de confirmación que hemos enviado a tu nueva dirección de e-mail.',
|
||||
'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => 'Bien hecho, casi estamos. Ahora tienes que seguir el vínculo de confirmación que hemos enviado a tu antigua dirección de e-mail.',
|
||||
'Bio' => 'Biografía',
|
||||
'Block' => 'Bloquear',
|
||||
'Block status' => 'Estado de bloqueo',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Bloqueado el {0, date, MMMM dd, YYYY HH:mm}',
|
||||
'Cancel' => 'Cancelar',
|
||||
'Change your avatar at Gravatar.com' => 'Cambia tu avatar en Gravatar.com',
|
||||
'Children' => 'Descendientes',
|
||||
'Class' => 'Clase',
|
||||
'Close' => 'Cerrar',
|
||||
'Complete password reset on {0}' => 'Restablecimiento de contraseña completado en {0}',
|
||||
'Confirm' => 'Confirmar',
|
||||
'Confirm account on {0}' => 'Confirma cuenta en {0}',
|
||||
@ -107,6 +75,8 @@ return [
|
||||
'Create a user account' => 'Crear cuenta de usuario',
|
||||
'Create new permission' => 'Crear nuevo permiso',
|
||||
'Create new role' => 'Crear nuevo rol',
|
||||
'Create new rule' => 'Crear nueva regla',
|
||||
'Created at' => 'Creado el',
|
||||
'Credentials will be sent to the user by email' => 'Las credenciales se enviarán al usuario por correo electrónico',
|
||||
'Current password' => 'Contraseña actual',
|
||||
'Current password is not valid' => 'La contraseña actual no es válida',
|
||||
@ -114,10 +84,13 @@ return [
|
||||
'Delete account' => 'Eliminar cuenta',
|
||||
'Description' => 'Descripció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',
|
||||
'Don\'t have an account? Sign up!' => '¿No tienes cuenta? ¡Regístrate!',
|
||||
'Email' => 'Correo electrónico',
|
||||
'Email (public)' => 'Correo electrónico (público)',
|
||||
'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 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',
|
||||
@ -128,26 +101,31 @@ return [
|
||||
'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 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 did not make this request you can ignore this email' => 'PD: Si ha recibido este correo electrónico por error, simplemente elimínelo',
|
||||
'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 request, please click the link below' => 'Para completar tu petición, haz clic en el siguiente enlace',
|
||||
'In order to finish your registration, we need you to enter following fields' => 'Para completar el registro, necesitamos que rellenes los siguientes campos',
|
||||
'Information' => 'Información',
|
||||
'Invalid login or password' => 'Usuario o contraseña incorrectos',
|
||||
'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',
|
||||
'It will be deleted forever' => 'Será eliminado para siempre',
|
||||
'Items' => 'Elementos',
|
||||
'Joined on {0, date}' => 'Registrado el {0, date}',
|
||||
'Last login' => 'Último acceso',
|
||||
'Location' => 'Localización',
|
||||
'Login' => 'Usuario',
|
||||
'Logout' => 'Cerrar sesión',
|
||||
'Manage users' => 'Administra usuarios',
|
||||
'Name' => 'Nombre',
|
||||
'Networks' => 'Redes',
|
||||
'Never' => 'Nunca',
|
||||
'New email' => 'Nueva cuenta de correo electrónico',
|
||||
'New password' => 'Nueva contraseña',
|
||||
'New permission' => 'Nuevo permiso',
|
||||
'New role' => 'Nuevo rol',
|
||||
'New rule' => 'Nueva regla',
|
||||
'New user' => 'Nuevo usuario',
|
||||
'Not blocked' => 'No bloqueado',
|
||||
'Not found' => 'No encontrado',
|
||||
@ -173,11 +151,18 @@ return [
|
||||
'Reset your password' => 'Restablece contraseña',
|
||||
'Roles' => 'Roles',
|
||||
'Rule' => 'Regla',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => 'La clase de Rule debe extender "yii\\rbac\\Rule"',
|
||||
'Rule name' => 'Nombre de la regla',
|
||||
'Rule name {0} is already in use' => 'El nombre {0} ya está siendo usado por otra regla',
|
||||
'Rule {0} does not exists' => 'La regla {0} no existe',
|
||||
'Rule {0} not found.' => 'Regla {0} no encontrada.',
|
||||
'Rules' => 'Reglas',
|
||||
'Save' => 'Guardar',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => 'Escanee el QrCode con la aplicación Google Authenticator, luego inserte su código temporal en el campo de texto y envíe.',
|
||||
'Sign in' => 'Iniciar sesión',
|
||||
'Sign up' => 'Registrarse',
|
||||
'Something went wrong' => 'Algo salió mal',
|
||||
'Switch identities is disabled.' => 'Personificación de usuarios deshabilitada.',
|
||||
'Thank you for signing up on {0}' => 'Gracias por registrate en {0}',
|
||||
'Thank you, registration is now complete.' => 'Gracias, el registro ha sido completado.',
|
||||
'The confirmation link is invalid or expired. Please try requesting a new one.' => 'El enlace de confirmación no es válido o ha caducado. Por favor, intenta a solicitar uno nuevo.',
|
||||
@ -185,15 +170,26 @@ return [
|
||||
'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 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 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 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 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 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 send confirmation link' => 'No se ha podido enviar el enlace de confirmación',
|
||||
'Unable to update authorization item.' => 'No se ha podido actualizar el elemento de autorización.',
|
||||
'Unable to update authorization rule.' => 'Ha sido imposible actualizar la regla de autencicación.',
|
||||
'Unable to update block status.' => 'No se ha podido actualizar el estado de bloqueo.',
|
||||
'Unblock' => 'Desbloquear',
|
||||
'Unconfirmed' => 'Sin confirmar',
|
||||
@ -201,18 +197,24 @@ return [
|
||||
'Update assignments' => 'Actualizar asignaciones',
|
||||
'Update permission' => 'Actualizar permiso',
|
||||
'Update role' => 'Actualizar rol',
|
||||
'Update rule' => 'Actualiza regla',
|
||||
'Update user account' => 'Actualizar cuenta',
|
||||
'Updated at' => 'Actualizado el',
|
||||
'User block status has been updated.' => 'El estado de bloqueo del usuario ha sido actualizado.',
|
||||
'User has been confirmed' => 'El usuario ha sido confirmado',
|
||||
'User has been created' => 'El usuario ha sido creado',
|
||||
'User has been deleted' => 'El usuario ha sido eliminado',
|
||||
'User is not found' => 'Usuario no encontrado',
|
||||
'User not found.' => 'Usuario no encontrado.',
|
||||
'Username' => 'Usuario',
|
||||
'Users' => 'Usuarios',
|
||||
'VKontakte' => 'VKontakte',
|
||||
'Verification failed. Please, enter new code.' => 'Fallo en la verificación. Por favor, ingrese un nuevo código.',
|
||||
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'No hemos podido reenviar el e-mail para confirmar tu dirección de correo electrónico. Por favor, verifica si el e-mail es correcto o si éste ya ha sido confirmado.',
|
||||
'We have generated a password for you' => 'Te hemos generado una contraseña',
|
||||
'We have received a request to change the email address for your account on {0}' => 'Hemos recibido una petición para cambiar la dirección de correo electrónico de tu cuenta en {0}',
|
||||
'We have received a request to reset the password for your account on {0}' => 'Hemos recibido una petición para cambiar la contraseña de tu cuenta en {0}',
|
||||
'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Hemos enviado enlaces de confirmación a tu antigua y nueva cuenta de correo electrónico. Debes seguir los dos vínculos para completar tu petición.',
|
||||
'Website' => 'Página Web',
|
||||
'Welcome to {0}' => 'Bienvenido a {0}',
|
||||
'Yandex' => 'Yandex',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -21,6 +21,7 @@ return [
|
||||
'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.' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Close' => '',
|
||||
'Disable Two-Factor Auth' => '',
|
||||
'Enable' => '',
|
||||
@ -28,6 +29,7 @@ return [
|
||||
'Invalid two-factor code' => '',
|
||||
'Last login' => '',
|
||||
'Never' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '',
|
||||
'This will disable two-factor auth. Are you sure?' => '',
|
||||
'Two Factor Authentication' => '',
|
||||
|
||||
@ -21,6 +21,7 @@ return [
|
||||
'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.' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Close' => '',
|
||||
'Disable Two-Factor Auth' => '',
|
||||
'Enable' => '',
|
||||
@ -28,6 +29,7 @@ return [
|
||||
'Invalid two-factor code' => '',
|
||||
'Last login' => '',
|
||||
'Never' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '',
|
||||
'This will disable two-factor auth. Are you sure?' => '',
|
||||
'Two Factor Authentication' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -17,16 +17,11 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'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ę.',
|
||||
'Cancel' => 'Anuluj',
|
||||
'Close' => 'Zamknij',
|
||||
'Last login' => 'Data ostatniego logowania',
|
||||
'Two factor successfully enabled.' => 'Dwuetapowe uwierzytelnianie poprawnie włączone.',
|
||||
'User not found.' => 'Nie znaleziono użytkownika.',
|
||||
'Verification failed. Please, enter new code.' => 'Weryfikacja nie powiodła się. Prosimy o podanie nowego kodu.',
|
||||
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Nie mogliśmy wysłać ponownie emaila, aby potwierdzić Twój adres. Prosimy o sprawdzenie, czy to poprawny adres i czy nie został już potwierdzony.',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'(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 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 new confirmation link has been sent' => 'Nowy link z potwierdzeniem został wysłany',
|
||||
'A password will be generated automatically if not provided' => 'W przypadku braku hasła, zostanie ono wygenerowane automatycznie',
|
||||
'Account' => 'Konto',
|
||||
@ -60,9 +55,11 @@ return [
|
||||
'Block' => 'Zablokuj',
|
||||
'Block status' => 'Status blokady',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'Zablokowany dnia {0, date, dd MMMM YYYY, HH:mm}',
|
||||
'Cancel' => 'Anuluj',
|
||||
'Change your avatar at Gravatar.com' => 'Zmień swój awatar na Gravatar.com',
|
||||
'Children' => 'Dzieci',
|
||||
'Class' => 'Klasa',
|
||||
'Close' => 'Zamknij',
|
||||
'Complete password reset on {0}' => 'Resetowanie hasła w serwisie {0}',
|
||||
'Confirm' => 'Aktywuj',
|
||||
'Confirm account on {0}' => 'Aktywacja konta w serwisie {0}',
|
||||
@ -116,6 +113,7 @@ return [
|
||||
'It will be deleted forever' => 'Usuniętych kont nie można przywrócić',
|
||||
'Items' => 'Elementy',
|
||||
'Joined on {0, date}' => 'Dołączył {0, date}',
|
||||
'Last login' => 'Data ostatniego logowania',
|
||||
'Location' => 'Lokalizacja',
|
||||
'Login' => 'Login',
|
||||
'Logout' => 'Wyloguj',
|
||||
@ -176,6 +174,7 @@ return [
|
||||
'Time zone' => 'Strefa czasowa',
|
||||
'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',
|
||||
@ -206,9 +205,12 @@ return [
|
||||
'User has been created' => 'Użytkownik został dodany',
|
||||
'User has been deleted' => 'Użytkownik został usunięty',
|
||||
'User is not found' => 'Nie znaleziono użytkownika',
|
||||
'User not found.' => 'Nie znaleziono użytkownika.',
|
||||
'Username' => 'Nazwa użytkownika',
|
||||
'Users' => 'Użytkownicy',
|
||||
'VKontakte' => 'VKontakte',
|
||||
'Verification failed. Please, enter new code.' => 'Weryfikacja nie powiodła się. Prosimy o podanie nowego kodu.',
|
||||
'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Nie mogliśmy wysłać ponownie emaila, aby potwierdzić Twój adres. Prosimy o sprawdzenie, czy to poprawny adres i czy nie został już potwierdzony.',
|
||||
'We have generated a password for you' => 'Wygenerowaliśmy hasło dla Ciebie',
|
||||
'We have received a request to change the email address for your account on {0}' => 'Otrzymaliśmy prośbę o zmianę adresu email konta w serwisie {0}',
|
||||
'We have received a request to reset the password for your account on {0}' => 'Otrzymaliśmy prośbę o reset hasła konta w serwisie {0}',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -21,6 +21,7 @@ return [
|
||||
'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.' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Close' => '',
|
||||
'Disable Two-Factor Auth' => '',
|
||||
'Enable' => '',
|
||||
@ -28,6 +29,7 @@ return [
|
||||
'Invalid two-factor code' => '',
|
||||
'Last login' => '',
|
||||
'Never' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '',
|
||||
'This will disable two-factor auth. Are you sure?' => '',
|
||||
'Two Factor Authentication' => '',
|
||||
|
||||
@ -21,6 +21,7 @@ return [
|
||||
'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.' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Close' => '',
|
||||
'Disable Two-Factor Auth' => '',
|
||||
'Enable' => '',
|
||||
@ -28,6 +29,7 @@ return [
|
||||
'Invalid two-factor code' => '',
|
||||
'Last login' => '',
|
||||
'Never' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '',
|
||||
'This will disable two-factor auth. Are you sure?' => '',
|
||||
'Two Factor Authentication' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
@ -54,6 +54,7 @@ return [
|
||||
'Block status' => '',
|
||||
'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '',
|
||||
'Cancel' => '',
|
||||
'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '',
|
||||
'Change your avatar at Gravatar.com' => '',
|
||||
'Children' => '',
|
||||
'Class' => '',
|
||||
@ -147,6 +148,7 @@ return [
|
||||
'Remember me next time' => '',
|
||||
'Request new confirmation message' => '',
|
||||
'Reset your password' => '',
|
||||
'Role "{0}" not found. Creating it.' => '',
|
||||
'Roles' => '',
|
||||
'Rule' => '',
|
||||
'Rule class must extend "yii\\rbac\\Rule".' => '',
|
||||
|
||||
Reference in New Issue
Block a user