Browse Source

Login form uses login or email

remotes/origin/master
echarp 3 years ago
parent
commit
2dccbf0e33
  1. 8
      app/views/devise/sessions/new.html.haml

8
app/views/devise/sessions/new.html.haml

@ -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…
Cancel
Save