aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-09-27 20:58:46 +0200
committerThomas Lange <code@nerdmind.de>2021-09-27 20:59:46 +0200
commit7308c7278969291cb9708582d8f5644b1bd8db67 (patch)
tree6e7833397345f290755fab3af63127bd9c986880 /admin
parent8c9aff90b6e0a935188b20060dbdcbe9f7aeb28f (diff)
downloadblog-7308c7278969291cb9708582d8f5644b1bd8db67.tar.gz
blog-7308c7278969291cb9708582d8f5644b1bd8db67.tar.xz
blog-7308c7278969291cb9708582d8f5644b1bd8db67.zip
Fix incorrect parameter list for logout action
Diffstat (limited to 'admin')
-rw-r--r--admin/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/auth.php b/admin/auth.php
index 8d7bf9a..68b07a4 100644
--- a/admin/auth.php
+++ b/admin/auth.php
@@ -16,7 +16,7 @@ if(Application::isAuthenticated()) {
#===============================================================================
# IF: Logout action
#===============================================================================
- if(HTTP::issetGET(['token' => Application::getSecurityToken(), ['action' => 'logout']])) {
+ if(HTTP::issetGET(['token' => Application::getSecurityToken()], ['action' => 'logout'])) {
session_destroy();
HTTP::redirect(Application::getAdminURL('auth.php'));
}