Login form uses login or email

This commit is contained in:
echarp 2019-05-09 13:41:29 +02:00
parent 6a92b84477
commit 2dccbf0e33

View File

@ -3,15 +3,15 @@
.field .field
= f.label :email = f.label :email
%br/ %br/
= f.email_field :email, autofocus: true, autocomplete: "email" = f.text_field :login, autofocus: true, autocomplete: 'login'
.field .field
= f.label :password = f.label :password
%br/ %br/
= f.password_field :password, autocomplete: "current-password" = f.password_field :password, autocomplete: 'current-password'
- if devise_mapping.rememberable? - if devise_mapping.rememberable?
.field .field
= f.check_box :remember_me = f.check_box :remember_me
= f.label :remember_me = f.label :remember_me
.actions .actions
= f.submit "Log in" = f.submit 'Log in'
= render "devise/shared/links" = render 'devise/shared/links'