From e6bee5b36c9f538f262a0b48d883081f39a98d40 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 7 Mar 2017 18:06:11 +0800 Subject: [PATCH] changed url --- .../reset_c_panel_password_mailer/reset_user_password.html.erb | 2 +- .../send_user_confirmation.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/reset_c_panel_password_mailer/reset_user_password.html.erb b/app/views/reset_c_panel_password_mailer/reset_user_password.html.erb index 6d05a1d..f22ae1b 100644 --- a/app/views/reset_c_panel_password_mailer/reset_user_password.html.erb +++ b/app/views/reset_c_panel_password_mailer/reset_user_password.html.erb @@ -1,3 +1,3 @@

Please Reset your password with the following instructions

-<%= link_to 'Click here to reset', cpanel_reset_password_url(:token => @reset_token, :id => @user_id)%> \ No newline at end of file +<%= link_to 'Click here to reset', "http://#{request.host_with_port}/cpanel/reset_password?id=#{@user_id}&token=#{@reset_token}" %> \ No newline at end of file diff --git a/app/views/reset_c_panel_password_mailer/send_user_confirmation.html.erb b/app/views/reset_c_panel_password_mailer/send_user_confirmation.html.erb index 8b73054..7378ce9 100644 --- a/app/views/reset_c_panel_password_mailer/send_user_confirmation.html.erb +++ b/app/views/reset_c_panel_password_mailer/send_user_confirmation.html.erb @@ -1,3 +1,3 @@

Please confirm email by clicking on the link.

-<%= link_to 'Click here to confirm', cpanel_confirm_email_url(:token => @confirmation_token, :id => @user_id)%> \ No newline at end of file +<%= link_to 'Click here to confirm', "http://#{request.host_with_port}/cpanel/reset_password?id=#{@user_id}&token=#{@reset_token}" %> \ No newline at end of file