From e57885c9343f0751dcb4abc3e6e0dc7c46e36c0e Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 16 Aug 2012 18:17:43 -0400 Subject: [PATCH] CC-4191: Password Reset: Reset link should be updated after default port is changed -done --- airtime_mvc/application/models/Auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Auth.php b/airtime_mvc/application/models/Auth.php index 8ddc8f363..c287a0335 100644 --- a/airtime_mvc/application/models/Auth.php +++ b/airtime_mvc/application/models/Auth.php @@ -27,9 +27,10 @@ class Application_Model_Auth $e_link_protocol = empty($_SERVER['HTTPS']) ? "http" : "https"; $e_link_base = $_SERVER['SERVER_NAME']; + $e_link_port = $_SERVER['SERVER_PORT']; $e_link_path = $view->url(array('user_id' => $user->getDbId(), 'token' => $token), 'password-change'); - $message = "Click this link: {$e_link_protocol}://{$e_link_base}{$e_link_path}"; + $message = "Click this link: {$e_link_protocol}://{$e_link_base}:{$e_link_port}{$e_link_path}"; $success = Application_Model_Email::send('Airtime Password Reset', $message, $user->getDbEmail());