Use path and url helpers for password links

This commit is contained in:
Andy Allan 2023-12-06 18:39:25 +00:00
parent 0c2e471708
commit 1d0f588d62
2 changed files with 2 additions and 3 deletions

View 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")