diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index fcaf254d6..3775c572f 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -15,7 +15,7 @@ %h1 Créez-vous un compte = f.label :email, "Email" - = f.text_field :email + = f.text_field :email, autofocus: true = f.label :password, "Mot de passe" = f.password_field :password, value: @user.password, placeholder: "8 caractères minimum" diff --git a/app/views/users/sessions/new.html.haml b/app/views/users/sessions/new.html.haml index ffac4fae9..69e777d39 100644 --- a/app/views/users/sessions/new.html.haml +++ b/app/views/users/sessions/new.html.haml @@ -27,7 +27,7 @@ %h1 Connectez-vous = f.label :email, "Email" - = f.text_field :email + = f.text_field :email, autofocus: true = f.label :password, "Mot de passe" = f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"