From 07c6eb51497388c544516f10125a43d5e56847af Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 18 Feb 2020 22:21:47 +0800 Subject: [PATCH] Update common.php --- function/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/common.php b/function/common.php index 5d0cea3..d5bdbcc 100644 --- a/function/common.php +++ b/function/common.php @@ -73,7 +73,7 @@ function config_oauth() // MS Customer // https://portal.azure.com $_SERVER['client_id'] = getConfig('client_id'); - $_SERVER['client_secret'] = base64_decode(equal_replace(getenv('client_secret'),1)); + $_SERVER['client_secret'] = base64_decode(equal_replace(getConfig('client_secret'),1)); //getConfig('client_secret'); $_SERVER['oauth_url'] = 'https://login.microsoftonline.com/common/oauth2/v2.0/'; $_SERVER['api_url'] = 'https://graph.microsoft.com/v1.0/me/drive/root';