From 6638b31790d9d3e37b820271f19c1e629bd2bd8a Mon Sep 17 00:00:00 2001 From: ziegler Date: Wed, 15 Nov 2023 11:14:14 +0100 Subject: [PATCH] Fixes for only office --- service/src/main/php/config.dist.php | 2 +- service/src/main/php/src/tools/onlyoffice/doceditor.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/service/src/main/php/config.dist.php b/service/src/main/php/config.dist.php index 6f43cc0..83bb538 100644 --- a/service/src/main/php/config.dist.php +++ b/service/src/main/php/config.dist.php @@ -21,7 +21,7 @@ /*onlyoffice*/ define('ONLYOFFICE_DOCUMENT_SERVER', ''); define('ONLYOFFICE_PLUGIN_URL', ''); -define('ONLYOFFICE_JWT_SECRET',''); +define('ONLYOFFICE_JWT_SECRET', ''); define('ONLYOFFICE_STORAGEFOLDER','storage'); /*onyx*/ diff --git a/service/src/main/php/src/tools/onlyoffice/doceditor.php b/service/src/main/php/src/tools/onlyoffice/doceditor.php index 2cea874..ae53df7 100755 --- a/service/src/main/php/src/tools/onlyoffice/doceditor.php +++ b/service/src/main/php/src/tools/onlyoffice/doceditor.php @@ -235,10 +235,7 @@ function getCallbackUrl($id) { } }; - config.token = " $payload]; - echo JWT::encode($token, ONLYOFFICE_JWT_SECRET); - ?>" + config.token = "" ; var сonnectEditor = function () { docEditor = new DocsAPI.DocEditor("iframeEditor", config);