X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5c5aacb209fd209c0b13203c0c7d0259635c671..84c898173778ece298b6bcd6d9839c207a831a86:/app/mailers/user_mailer.rb diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 89f8dfdbf..d1ad60b2c 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -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") @@ -45,11 +44,13 @@ class UserMailer < ApplicationMailer def gpx_success(trace, possible_points) with_recipient_locale trace.user do @to_user = trace.user.display_name + @trace_url = show_trace_url(trace.user, trace) @trace_name = trace.name @trace_points = trace.size @trace_description = trace.description @trace_tags = trace.tags @possible_points = possible_points + @my_traces_url = url_for(:controller => "traces", :action => "mine") mail :to => trace.user.email, :subject => t(".subject")