Login form uses login or email
This commit is contained in:
parent
6a92b84477
commit
2dccbf0e33
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user