Merge pull request #5218 from betagouv/account-labels

#5162 - Précisions sur le format attendu de login et mot de passe
This commit is contained in:
Keirua 2020-06-04 15:01:45 +02:00 committed by GitHub
commit efe7773eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -11,6 +11,6 @@
= f.email_field :email, value: @email, disabled: true
= f.label :password, "Mot de passe"
= f.password_field :password, autofocus: true, required: true, placeholder: "8 caractères minimum"
= f.password_field :password, autofocus: true, required: true, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum"
= f.submit "Créer un compte", class: "button large primary expand"

View file

@ -5,7 +5,7 @@
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
%h1 Créez-vous un compte demarches-simplifiees.fr
= f.label :email, "Email"
= f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true, placeholder: "Votre adresse email"
.suspect-email.hidden
@ -19,8 +19,8 @@
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
Non
= f.label :password, "Mot de passe"
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "8 caractères minimum", 'aria-describedby':'8 caractères minimum'
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum", 'aria-describedby':'8 caractères minimum'
= f.submit "Créer un compte", class: "button large primary expand"

View file

@ -5,10 +5,10 @@
= form_for User.new, url: user_session_path, html: { class: "form" } do |f|
%h2.huge-title Connectez-vous
= f.label :email, "Email"
= f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
= f.label :password, "Mot de passe"
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'current-password'
.auth-options