Use path and url helpers for password links
This commit is contained in:
parent
0c2e471708
commit
1d0f588d62
2 changed files with 2 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue