plataformatec/devise — Issue #1687: PasswordsController#create does not send_password_reset_instructions
Author: daidekman
Created: 2012-02-29 16:09:14+00:00
State: open

Devise is installed with most tested features working correctly. I have also installed devise_invitable.

After submitting an email address with the form to reset a password, user is redirected to the sign_in page, which is correct. However, the command to send_password_reset_instructions email is never invoked. The email does not arrive and the log seems to show that the email is never created:

Started POST "/users/password" for 127.0.0.1 at 2012-02-29 10:55:58 -0500
Processing by Devise::PasswordsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"OiIxtykx/rvuI/BptejHke7dU8yLZ+BOpFT4/qQXRl0=", "user"=>{"email"=>"andy@example.com"}, "commit"=>"Send me reset password instructions"}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'andy@example.com' LIMIT 1
Redirected to http://localhost:3000/users/sign_in
Completed 302 Found in 101ms

Started GET "/users/sign_in" for 127.0.0.1 at 2012-02-29 10:55:59 -0500
Processing by Devise::SessionsController#new as HTML

The app has a custom mailer (class Notifier < Devise::Mailer) to set headers for devise_invitable's :invitation_instructions. However, it seems that the PasswordsController never calls the mailer.