Skip to content

Commit

Permalink
Merge branch 'maven/fixes/8.0' into maven/fixes/8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zieglermarian committed Nov 15, 2023
2 parents 5027b58 + 6638b31 commit 145c1e4
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 145c1e4

Please sign in to comment.