]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Split password reset functionality into PasswordsController
[rails.git] / app / mailers / user_mailer.rb
index e0f3bb5f6e0a7968fac3f37c4be8681b9177f366..bb43bc9626bec4bcb14218bb76b9f171ad2140f9 100644 (file)
@@ -34,7 +34,7 @@ class UserMailer < ApplicationMailer
 
   def lost_password(user, token)
     with_recipient_locale user do
-      @url = url_for(:controller => "users", :action => "reset_password",
+      @url = url_for(:controller => "passwords", :action => "reset_password",
                      :token => token.token)
 
       mail :to => user.email,
@@ -83,7 +83,7 @@ class UserMailer < ApplicationMailer
 
       mail :from => from_address(message.sender.display_name, "m", message.id, message.digest),
            :to => message.recipient.email,
-           :subject => I18n.t("user_mailer.message_notification.subject_header", :subject => message.title)
+           :subject => t(".subject", :message_title => message.title)
     end
   end