[Web] Fix logout after oauth2

master
andryyy 2020-05-03 10:46:41 +02:00
parent a6247fc13f
commit c3c584a075
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ if (!empty($mailbox)) {
'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''), 'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''),
'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''), 'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),
)); ));
if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) {
session_unset();
session_destroy();
}
exit; exit;
} }
if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) { if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) {