app/models/user_mailer.rb in spree_auth-0.30.2 vs app/models/user_mailer.rb in spree_auth-0.40.0
- old
+ new
@@ -1,10 +1,9 @@
class UserMailer < ActionMailer::Base
default_url_options[:host] = Spree::Config[:site_url]
- default :from => Spree::Config[:mails_from]
- def password_reset_instructions(user)
- @edit_password_reset_url = edit_password_reset_url(user.perishable_token)
+ def reset_password_instructions(user)
+ @edit_password_reset_url = edit_user_password_url(:reset_password_token => user.reset_password_token)
mail(:to => user.email,
:subject => Spree::Config[:site_name] + ' ' + I18n.t("password_reset_instructions"))
end
end