Log out ghost sessions instead of displaying message

This commit is contained in:
Miraty 2023-08-17 18:20:08 +02:00
parent aa91004ab5
commit 13a0abb378
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ if (isset($_COOKIE[SESSION_COOKIE_NAME]))
if (isset($_SESSION['id'])) {
if (!isset(query('select', 'users', ['id' => $_SESSION['id']], 'id')[0]))
output(403, _('This account doesn\'t exist anymore. Log out to end this ghost session.'));
logout();
// Decrypt display username
if (!isset($_COOKIE['display-username-decryption-key']))