✨ (user): Integra pagetop-mail y valida identidades
- Envía por correo la recuperación de contraseña y, con `require_email_verification`, la verificación de cuentas nuevas, que se confirma con un botón (los escáneres de correo abren los enlaces). - Nueva política de nombres de usuario (`identity_policy`): sin `@`, sin distinguir mayúsculas y sin nombres confusables (UTS #39). Email validado con pagetop-mail. - Tokens de un solo uso atómicos y ligados al usuario. Los correos a direcciones sin verificar no incluyen datos elegidos por el usuario. - Bloqueo por intentos fallidos con su ventana de recuento, y el mismo tiempo de respuesta exista o no la cuenta. Argon2 en `spawn_blocking`. - Límites de longitud del nombre visible y de los roles, y botones sólo con el permiso que exigen. Más correcciones en formularios y búsqueda.
This commit is contained in:
parent
a9b1b3b2a3
commit
bd54980d0f
34 changed files with 2053 additions and 355 deletions
|
|
@ -11,6 +11,7 @@ title-login = Sign in
|
|||
title-register = Create account
|
||||
title-password-reset = Reset password
|
||||
title-new-password = Set new password
|
||||
title-verify-email = Confirm your email
|
||||
title-profile = My profile
|
||||
title-profile-edit = Edit my profile
|
||||
title-profile-password = Change my password
|
||||
|
|
@ -32,6 +33,7 @@ btn-logout = Sign out
|
|||
btn-register = Create account
|
||||
btn-send-reset-link = Send reset link
|
||||
btn-set-password = Change password
|
||||
btn-verify-email = Confirm my email
|
||||
btn-edit-profile = Edit profile
|
||||
|
||||
link-register = Create an account
|
||||
|
|
@ -51,23 +53,55 @@ msg-password-reset-sent =
|
|||
If an account with that email exists, we have sent a reset link.
|
||||
Please check your inbox.
|
||||
|
||||
msg-verify-email = Press the button to confirm your email address and activate your account.
|
||||
|
||||
msg-verification-sent =
|
||||
We have sent you an email to confirm your address.
|
||||
Open the link it contains and confirm your address to activate your account.
|
||||
|
||||
# **< Emails >**
|
||||
|
||||
mail-greeting = Hello { $username },
|
||||
mail-greeting-plain = Hello,
|
||||
mail-link-expires =
|
||||
{ $hours ->
|
||||
[one] The link expires in one hour.
|
||||
*[other] The link expires in { $hours } hours.
|
||||
}
|
||||
|
||||
mail-reset-subject = Reset your { $app } password
|
||||
mail-reset-intro = We received a request to reset the password of your account. To choose a new one, open this link:
|
||||
mail-reset-action = Choose a new password
|
||||
mail-reset-ignore = If you did not request it, ignore this email: your password will not change.
|
||||
|
||||
mail-verify-subject = Confirm your email for { $app }
|
||||
mail-verify-intro = Thank you for signing up. To activate your account, confirm your email address by opening this link:
|
||||
mail-verify-action = Confirm my email
|
||||
mail-verify-ignore = If you did not create an account, ignore this email.
|
||||
|
||||
mail-preview-reset = Password reset
|
||||
mail-preview-verify = Email verification on sign-up
|
||||
|
||||
# **< Error messages >**
|
||||
|
||||
error-invalid-credentials = Invalid username or password.
|
||||
error-account-blocked = Your account is blocked. Please contact the administrator.
|
||||
error-account-pending = Please verify your email address before signing in.
|
||||
error-account-locked = Too many failed attempts. Please try again later.
|
||||
error-password-mismatch = Passwords do not match.
|
||||
error-password-too-short = Password must be at least { $n } characters.
|
||||
error-invalid-timezone = Invalid timezone.
|
||||
error-invalid-language = Invalid language.
|
||||
error-invalid-theme = Invalid theme.
|
||||
error-about-too-long = The "About me" text must be at most { $n } characters.
|
||||
error-username-taken = This username is already taken.
|
||||
error-email-taken = This email address is already registered.
|
||||
error-token-invalid = This link is invalid or has expired.
|
||||
error-current-password = The current password is incorrect.
|
||||
error-internal = An unexpected error occurred. Please try again.
|
||||
error-invalid-credentials = Invalid username or password.
|
||||
error-account-blocked = Your account is blocked. Please contact the administrator.
|
||||
error-account-pending = Please verify your email address before signing in.
|
||||
error-account-locked = Too many failed attempts. Please try again later.
|
||||
error-password-mismatch = Passwords do not match.
|
||||
error-password-too-short = Password must be at least { $n } characters.
|
||||
error-invalid-timezone = Invalid timezone.
|
||||
error-invalid-language = Invalid language.
|
||||
error-invalid-theme = Invalid theme.
|
||||
error-about-too-long = The "About me" text must be at most { $n } characters.
|
||||
error-display-name-too-long = The display name must be at most { $n } characters.
|
||||
error-username-taken = This username is already taken or can be mistaken for an existing one.
|
||||
error-invalid-username = The username is not valid: check the rules shown below the field.
|
||||
error-invalid-email = The email address is not valid.
|
||||
error-email-taken = This email address is already registered.
|
||||
error-token-invalid = This link is invalid or has expired.
|
||||
error-current-password = The current password is incorrect.
|
||||
error-internal = An unexpected error occurred. Please try again.
|
||||
|
||||
# **< Account statuses >**
|
||||
|
||||
|
|
@ -128,11 +162,27 @@ field-roles = Roles
|
|||
field-is-admin = Administrator (unrestricted access)
|
||||
field-search-users = Search by username, email or name...
|
||||
|
||||
help-username-strict =
|
||||
{ $min } to { $max } characters: unaccented letters, digits, period, hyphen or underscore,
|
||||
starting with a letter or digit. Case is ignored when signing in.
|
||||
|
||||
help-username-unicode =
|
||||
{ $min } to { $max } characters: letters of any alphabet (without mixing them), digits, period,
|
||||
hyphen or underscore, starting with a letter or digit. Case is ignored when signing in.
|
||||
|
||||
help-username-permissive =
|
||||
{ $min } to { $max } characters: letters of any alphabet (without mixing them), digits, single
|
||||
spaces, period, hyphen, underscore, apostrophe or "+", starting with a letter or digit. Case is
|
||||
ignored when signing in.
|
||||
|
||||
help-password-min-length = At least { $n } characters.
|
||||
|
||||
help-machine-name-immutable =
|
||||
Lowercase letters, digits and underscores only. Cannot be changed after creation.
|
||||
|
||||
help-admin-roles =
|
||||
As an administrator they have every permission. These roles will apply if they stop being one.
|
||||
This is an administrator account with every permission. These roles will apply if it stops
|
||||
being one.
|
||||
|
||||
# **< Admin: buttons and links >**
|
||||
|
||||
|
|
@ -167,7 +217,8 @@ empty-role-permissions = This role has no permissions.
|
|||
|
||||
error-role-not-found = Role not found.
|
||||
error-role-machine-name-taken = This machine name is already taken.
|
||||
error-invalid-machine-name = Machine name may only contain lowercase letters, digits and underscores.
|
||||
error-invalid-machine-name = Machine name may only contain lowercase letters, digits and underscores, up to { $n } characters.
|
||||
error-invalid-role-label = The label must not be blank or longer than { $n } characters.
|
||||
error-role-locked = This role is a system role and cannot be modified.
|
||||
error-role-in-use = This role has users assigned and cannot be deleted.
|
||||
error-last-administrator = Cannot remove the last administrator.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ title-login = Iniciar sesión
|
|||
title-register = Crear cuenta
|
||||
title-password-reset = Recuperar contraseña
|
||||
title-new-password = Establecer nueva contraseña
|
||||
title-verify-email = Confirmar tu correo
|
||||
title-profile = Mi perfil
|
||||
title-profile-edit = Editar mi perfil
|
||||
title-profile-password = Cambiar mi contraseña
|
||||
|
|
@ -32,6 +33,7 @@ btn-logout = Cerrar sesión
|
|||
btn-register = Crear cuenta
|
||||
btn-send-reset-link = Enviar enlace
|
||||
btn-set-password = Cambiar contraseña
|
||||
btn-verify-email = Confirmar mi correo
|
||||
btn-edit-profile = Editar perfil
|
||||
|
||||
link-register = Crear una cuenta
|
||||
|
|
@ -51,23 +53,55 @@ msg-password-reset-sent =
|
|||
Si existe una cuenta con ese email, hemos enviado un enlace de recuperación.
|
||||
Revisa tu bandeja de entrada.
|
||||
|
||||
msg-verify-email = Pulsa el botón para confirmar tu dirección de correo y activar tu cuenta.
|
||||
|
||||
msg-verification-sent =
|
||||
Te hemos enviado un correo para confirmar tu dirección.
|
||||
Abre el enlace que contiene y confirma tu dirección para activar tu cuenta.
|
||||
|
||||
# **< Correos >**
|
||||
|
||||
mail-greeting = Hola, { $username }:
|
||||
mail-greeting-plain = Hola:
|
||||
mail-link-expires =
|
||||
{ $hours ->
|
||||
[one] El enlace caduca en una hora.
|
||||
*[other] El enlace caduca en { $hours } horas.
|
||||
}
|
||||
|
||||
mail-reset-subject = Recupera tu contraseña de { $app }
|
||||
mail-reset-intro = Hemos recibido una solicitud para restablecer la contraseña de tu cuenta. Para elegir una nueva, abre este enlace:
|
||||
mail-reset-action = Elegir una nueva contraseña
|
||||
mail-reset-ignore = Si no lo has solicitado tú, ignora este correo: tu contraseña no cambiará.
|
||||
|
||||
mail-verify-subject = Confirma tu correo en { $app }
|
||||
mail-verify-intro = Gracias por registrarte. Para activar tu cuenta, confirma tu dirección de correo abriendo este enlace:
|
||||
mail-verify-action = Confirmar mi correo
|
||||
mail-verify-ignore = Si no has creado ninguna cuenta, ignora este correo.
|
||||
|
||||
mail-preview-reset = Recuperación de contraseña
|
||||
mail-preview-verify = Verificación del correo al registrarse
|
||||
|
||||
# **< Mensajes de error >**
|
||||
|
||||
error-invalid-credentials = Usuario o contraseña incorrectos.
|
||||
error-account-blocked = Tu cuenta está bloqueada. Contacta con el administrador.
|
||||
error-account-pending = Verifica tu dirección de email antes de iniciar sesión.
|
||||
error-account-locked = Demasiados intentos fallidos. Inténtalo de nuevo más tarde.
|
||||
error-password-mismatch = Las contraseñas no coinciden.
|
||||
error-password-too-short = La contraseña debe tener al menos { $n } caracteres.
|
||||
error-invalid-timezone = Zona horaria no válida.
|
||||
error-invalid-language = Idioma no válido.
|
||||
error-invalid-theme = Tema no válido.
|
||||
error-about-too-long = El texto «Sobre mí» no puede superar { $n } caracteres.
|
||||
error-username-taken = Este nombre de usuario ya está en uso.
|
||||
error-email-taken = Esta dirección de email ya está registrada.
|
||||
error-token-invalid = Este enlace no es válido o ha caducado.
|
||||
error-current-password = La contraseña actual no es correcta.
|
||||
error-internal = Se ha producido un error inesperado. Inténtalo de nuevo.
|
||||
error-invalid-credentials = Usuario o contraseña incorrectos.
|
||||
error-account-blocked = Tu cuenta está bloqueada. Contacta con el administrador.
|
||||
error-account-pending = Verifica tu dirección de email antes de iniciar sesión.
|
||||
error-account-locked = Demasiados intentos fallidos. Inténtalo de nuevo más tarde.
|
||||
error-password-mismatch = Las contraseñas no coinciden.
|
||||
error-password-too-short = La contraseña debe tener al menos { $n } caracteres.
|
||||
error-invalid-timezone = Zona horaria no válida.
|
||||
error-invalid-language = Idioma no válido.
|
||||
error-invalid-theme = Tema no válido.
|
||||
error-about-too-long = El texto «Sobre mí» no puede superar { $n } caracteres.
|
||||
error-display-name-too-long = El nombre visible no puede superar { $n } caracteres.
|
||||
error-username-taken = Este nombre de usuario ya está en uso o se confunde con otro existente.
|
||||
error-invalid-username = El nombre de usuario no es válido: revisa las reglas indicadas bajo el campo.
|
||||
error-invalid-email = La dirección de correo no es válida.
|
||||
error-email-taken = Esta dirección de email ya está registrada.
|
||||
error-token-invalid = Este enlace no es válido o ha caducado.
|
||||
error-current-password = La contraseña actual no es correcta.
|
||||
error-internal = Se ha producido un error inesperado. Inténtalo de nuevo.
|
||||
|
||||
# **< Estados de cuenta >**
|
||||
|
||||
|
|
@ -128,11 +162,28 @@ field-roles = Roles
|
|||
field-is-admin = Administrador (acceso irrestricto)
|
||||
field-search-users = Buscar por usuario, email o nombre...
|
||||
|
||||
help-username-strict =
|
||||
Entre { $min } y { $max } caracteres: letras sin tildes ni eñes, números, punto, guion o guion
|
||||
bajo, empezando por una letra o un número. No se distinguen mayúsculas al iniciar sesión.
|
||||
|
||||
help-username-unicode =
|
||||
Entre { $min } y { $max } caracteres: letras de cualquier alfabeto (sin mezclarlos), números,
|
||||
punto, guion o guion bajo, empezando por una letra o un número. No se distinguen mayúsculas
|
||||
al iniciar sesión.
|
||||
|
||||
help-username-permissive =
|
||||
Entre { $min } y { $max } caracteres: letras de cualquier alfabeto (sin mezclarlos), números,
|
||||
espacios simples, punto, guion, guion bajo, apóstrofo o «+», empezando por una letra o un
|
||||
número. No se distinguen mayúsculas al iniciar sesión.
|
||||
|
||||
help-password-min-length = Al menos { $n } caracteres.
|
||||
|
||||
help-machine-name-immutable =
|
||||
Sólo minúsculas, dígitos y guiones bajos. No se puede cambiar tras crearlo.
|
||||
|
||||
help-admin-roles =
|
||||
Como administrador tiene todos los permisos. Estos roles se aplicarán si deja de serlo.
|
||||
Esta cuenta es de administrador y tiene todos los permisos. Estos roles se aplicarán si deja de
|
||||
serlo.
|
||||
|
||||
# **< Administración: botones y enlaces >**
|
||||
|
||||
|
|
@ -167,7 +218,8 @@ empty-role-permissions = Este rol no tiene permisos.
|
|||
|
||||
error-role-not-found = Rol no encontrado.
|
||||
error-role-machine-name-taken = Este nombre técnico ya está en uso.
|
||||
error-invalid-machine-name = El nombre técnico sólo admite minúsculas, dígitos y guiones bajos.
|
||||
error-invalid-machine-name = El nombre técnico sólo admite minúsculas, dígitos y guiones bajos, hasta { $n } caracteres.
|
||||
error-invalid-role-label = La etiqueta no puede quedar vacía ni superar { $n } caracteres.
|
||||
error-role-locked = Este rol es de sistema y no se puede modificar.
|
||||
error-role-in-use = Este rol tiene usuarios asignados y no se puede eliminar.
|
||||
error-last-administrator = No se puede quitar al último administrador.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue