diff --git a/views/auth_signup_login_templates.xml b/views/auth_signup_login_templates.xml index 3638e232bdd64052954437795327ad48b9b882c3..cd6dbf638ae05f8fb5df64f9b601b120d5b6b9c7 100644 --- a/views/auth_signup_login_templates.xml +++ b/views/auth_signup_login_templates.xml @@ -17,6 +17,10 @@ <attribute name="name">email</attribute> <attribute name="t-att-value">email</attribute> <attribute name="t-attf-class">form-control {{'is-invalid' if error_email else ''}}</attribute> + <!-- regexp prise sur https://developer.mozilla.org/fr/docs/Web/HTML/Element/input/email#validation_simple --> + <!-- mais avec un '+' plutôt qu'un '*' à la fin, comme demandé par solagro --> + <!-- et échappée correctement --> + <attribute name="pattern">^[a-zA-Z0-9.!#$%&'*+\/=?^_`\{\|\}~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?)+$</attribute> </xpath>