Use email field for password reset (#77)
Fixes unsubmmittable password reset form
This commit is contained in:
parent
0c0a5c106c
commit
a8c335899d
|
@ -4,7 +4,7 @@
|
|||
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
||||
= devise_error_messages!
|
||||
|
||||
= f.text_field :login, autofocus: true, label: "User name"
|
||||
= f.email_field :email, autofocus: true, label: "Email address"
|
||||
= f.submit "Send me password reset instructions"
|
||||
|
||||
= render "devise/shared/links"
|
||||
|
|
|
@ -181,7 +181,7 @@ Devise.setup do |config|
|
|||
# ==> Configuration for :recoverable
|
||||
#
|
||||
# Defines which key will be used when recovering the password for an account
|
||||
config.reset_password_keys = [ :login ]
|
||||
config.reset_password_keys = [ :email ]
|
||||
|
||||
# Time interval you can reset your password with a reset password key.
|
||||
# Don't put a too small interval or your users won't have the time to
|
||||
|
|
Loading…
Reference in New Issue