From ede0a8bc8bc022121d50fc5b1953c4a89c461d1d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 3 Feb 2016 11:41:18 -0800 Subject: [PATCH] use base URL from config for creating redirect URL --- controllers/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/Auth.php b/controllers/Auth.php index b20ca70..d06f457 100644 --- a/controllers/Auth.php +++ b/controllers/Auth.php @@ -156,7 +156,7 @@ class Auth { } private static function _buildRedirectURI() { - return 'http' . (Config::$ssl ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . '/login/callback'; + return Config::$base . 'login/callback'; } }