From c3c584a0755e3a9d6f60c8826b07f77fe439b162 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 3 May 2020 10:46:41 +0200 Subject: [PATCH] [Web] Fix logout after oauth2 --- data/web/oauth/profile.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/web/oauth/profile.php b/data/web/oauth/profile.php index cf386149..ff22e4d5 100644 --- a/data/web/oauth/profile.php +++ b/data/web/oauth/profile.php @@ -22,6 +22,10 @@ if (!empty($mailbox)) { 'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''), 'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''), )); + if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) { + session_unset(); + session_destroy(); + } exit; } if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) {