-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update using of JWT methods encode
and decode
#99
Update using of JWT methods encode
and decode
#99
Conversation
With HumHub v1.15 we're updating the JWT Library with requires this change. |
@yurabakhtin |
@@ -405,7 +421,7 @@ public function generateHash($key, $userGuid, $isEmpty = false) | |||
public function readHash($hash) | |||
{ | |||
try { | |||
$data = JWT::decode($hash, Yii::$app->settings->get('secret'), array('HS256')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this should have been removed, at most getJwtAlgorithm()
should also be used here.
I'm having trouble following along. Is this issue resolved? If so, how to I implement the fix on my system? |
I made a little progress. I downloaded the current onlyoffice-humhub-develop and replaced my plugin manually with that. Now I can edit files! (and I'm running the most recent 1.15). But, when I try to create new files, I get this error: An unexpected server error occurred. If this keeps happening, please contact a site administrator. Log entry: ERROR Fri, 10 Nov 2023 14:49:33 -0700 yii\base\ErrorException:2 |
ok I think I got it. I found that the download didn't include the document template folder referenced above so I went and got https://github.com/ONLYOFFICE/document-templates/tree/f00ab3a3efe6e2f8542ba026d1fc1d72df7dfd5f then put it in place and now all seems to be working again. I'm sure this wasn't the right way to do all this, so can someone please point me to the correct procedure so I didn't create another problem for myself? |
Issue:
Old version:
after run
composer install
I see the method was updated: