Page MenuHomePhorge

D5130.1775278403.diff
No OneTemporary

Authored By
Unknown
Size
1019 B
Referenced Files
None
Subscribers
None

D5130.1775278403.diff

diff --git a/plugins/kolab_files/kolab_files.php b/plugins/kolab_files/kolab_files.php
--- a/plugins/kolab_files/kolab_files.php
+++ b/plugins/kolab_files/kolab_files.php
@@ -36,8 +36,15 @@
{
$this->rc = rcube::get_instance();
+ if (isset($_SESSION['oauth_token'])) {
+ if ($this->rc->oauth->check_token_validity($_SESSION['oauth_token'])) {
+ $_SESSION['kolab_files_token'] = null;
+ }
+ }
+
// Register hooks
$this->add_hook('refresh', [$this, 'refresh']);
+ $this->add_hook('oauth_refresh_token', [$this, 'oauth_refresh_token']);
// Plugin actions for other tasks
$this->register_action('plugin.kolab_files', [$this, 'actions']);
@@ -129,6 +136,14 @@
return $args;
}
+ /**
+ * oauth_refresh_token hook handler
+ */
+ public function oauth_refresh_token($args)
+ {
+ $_SESSION['kolab_files_token'] = null;
+ }
+
/**
* Engine actions handler
*/

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 4:53 AM (7 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18828156
Default Alt Text
D5130.1775278403.diff (1019 B)

Event Timeline