]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Merge remote-tracking branch 'upstream/pull/4371'
[rails.git] / app / mailers / user_mailer.rb
index 89f8dfdbf781e66bb20533f2de5db71112e3ff85..8ca186aad92141dcc235c9d7f1b634b3e93c7c1d 100644 (file)
@@ -34,8 +34,7 @@ class UserMailer < ApplicationMailer
 
   def lost_password(user, token)
     with_recipient_locale user do
-      @url = url_for(:controller => "passwords", :action => "reset_password",
-                     :token => token.token)
+      @url = user_reset_password_url(:token => token.token)
 
       mail :to => user.email,
            :subject => t(".subject")