Browse Source

Log out ghost sessions instead of displaying message

Miraty 1 year ago
parent
commit
13a0abb378
1 changed files with 1 additions and 1 deletions
  1. 1 1
      router.php

+ 1 - 1
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']))