From 3572c67938b7acb5f3f28acfb48bb087eac17b75 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sat, 16 May 2020 14:45:22 +0300 Subject: [PATCH] Updated OAuth2 default URLs --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 5ab41fbf0..07a1efd9a 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -30,8 +30,8 @@ use GeoIp2\Database\Reader; include_once __DIR__ . '/../shared/api.php'; -$oauthDefaultSuccess = Config::getParam('protocol').'://'.$request->getServer('_APP_HOME').'/auth/oauth2/success'; -$oauthDefaultFailure = Config::getParam('protocol').'://'.$request->getServer('_APP_HOME').'/auth/oauth2/failure'; +$oauthDefaultSuccess = $request->getServer('_APP_HOME').'/auth/oauth2/success'; +$oauthDefaultFailure = $request->getServer('_APP_HOME').'/auth/oauth2/failure'; $oauth2Keys = [];