Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/maven/fixes/8.0' into maven/rele…
Browse files Browse the repository at this point in the history
…ase/8.0
  • Loading branch information
metaventis-build committed Nov 22, 2023
2 parents f8dd17f + 6638b31 commit 701d76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service/src/main/php/config.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down
5 changes: 1 addition & 4 deletions service/src/main/php/src/tools/onlyoffice/doceditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@ function getCallbackUrl($id) {
}
};
<?php if (defined('ONLYOFFICE_JWT_SECRET') && !empty(ONLYOFFICE_JWT_SECRET)): ?>
config.token = "<?php
$token = ["payload" => $payload];
echo JWT::encode($token, ONLYOFFICE_JWT_SECRET);
?>"
config.token = "<?php echo JWT::encode($payload, ONLYOFFICE_JWT_SECRET);?>"
<?php endif; ?>;
var сonnectEditor = function () {
docEditor = new DocsAPI.DocEditor("iframeEditor", config);
Expand Down

0 comments on commit 701d76f

Please sign in to comment.