From 9df6f7e23e2f91cc62ba2d9c68d3ff818175b281 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:46:47 +0300 Subject: [PATCH] fix logout --- app/Controllers/MainController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/MainController.php b/app/Controllers/MainController.php index 4e955d5..b9ce584 100644 --- a/app/Controllers/MainController.php +++ b/app/Controllers/MainController.php @@ -25,7 +25,7 @@ class MainController public static function logout() { - DB::query('DELETE FROM login_tokens WHERE servicekey=:userid', array(':userid'=>$_COOKIE['NGALLERYSERVICE'])); + DB::query('DELETE FROM login_tokens WHERE token=:userid', array(':userid'=>$_COOKIE['NGALLERYSESS'])); setcookie('NGALLERYSERVICE', '', 1); setcookie('NGALLERYSESS', '', 1); setcookie('NGALLERYSESS_', '', 1);