set email autocomplete during registration

username is an invalid autocomplete attribute for input type=email, but email is not
This commit is contained in:
clemkeirua 2020-06-15 15:17:40 +02:00 committed by Pierre de La Morinerie (Rebase PR Action)
parent cca84a62ca
commit 53ecd48be2

View file

@ -6,7 +6,7 @@
%h1 Créez-vous un compte demarches-simplifiees.fr
= f.label :email, "Email (nom@site.com)", id: :user_email_label
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
.suspect-email.hidden
.email-suggestion-title