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