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);