Commit 604eca80 authored by Thomas Citharel's avatar Thomas Citharel 🌲

fix an issue with username validation

Signed-off-by: Thomas Citharel's avatarThomas Citharel <tcit@tcit.fr>
parent e1f0d09c
Pipeline #26080 passed with stage
in 9 minutes and 28 seconds
......@@ -13,7 +13,7 @@ class AbstractSiteUser
/**
* @var string
* @Assert\NotBlank()
* @Assert\Regex(pattern="/^[a-z0-9]+$/", message="site.new.user.info.lowercase_username")
* @Assert\Regex(pattern="/^[a-z0-9]+$/", message="site.user.lowercase_username")
*/
protected $username;
......
......@@ -21,6 +21,7 @@ site:
password:
match: Les mots de passe doivent correspondre entre eux
too_short: Le mot de passe doit faire au minimum {{ limit }} caractères
lowercase_username: Votre identifiant doit contenir uniquement des caractères alphanumériques. Les majuscules ne sont pas autorisées.
settings:
password:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment