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
= f.label :email
%br/
= f.email_field :email, autofocus: true, autocomplete: "email"
= f.text_field :login, autofocus: true, autocomplete: 'login'
.field
= f.label :password
%br/
= f.password_field :password, autocomplete: "current-password"
= f.password_field :password, autocomplete: 'current-password'
- if devise_mapping.rememberable?
.field
= f.check_box :remember_me
= f.label :remember_me
.actions
= f.submit "Log in"
= render "devise/shared/links"
= f.submit 'Log in'
= render 'devise/shared/links'