FIX: Follow up fixes for password-reset error page (#18794)

* FIX: Follow up fixes for password-reset error page

Pass in `base_url` to the template
Use `.html_safe` since the message now contains html

Follow up to: 9b1536fb833f00a1625fe198964e90a32bb5bc71

* Update specs to pass in the base_url
This commit is contained in:
Blake Erickson
2022-10-28 15:41:26 -06:00
committed by GitHub
parent f70d71c5e3
commit f7a4fd1f49
3 changed files with 7 additions and 7 deletions

View File

@ -1895,7 +1895,7 @@ class UsersController < ApplicationController
@user = User.find(user_id) if user_id > 0
end
@error = I18n.t('password_reset.no_token') if !@user
@error = I18n.t('password_reset.no_token', base_url: Discourse.base_url) if !@user
end
def respond_to_suspicious_request