From 13a0abb378d31576ab3b16c7128d652fc08c7e2b Mon Sep 17 00:00:00 2001 From: Miraty Date: Thu, 17 Aug 2023 18:20:08 +0200 Subject: [PATCH] Log out ghost sessions instead of displaying message --- router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.php b/router.php index 6a2635a..85d6c05 100644 --- a/router.php +++ b/router.php @@ -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']))