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'; } }