From fc068bc938ccb41dcc75a39f592f6e707e964a81 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Mon, 29 Aug 2016 16:55:05 +0200 Subject: [PATCH] [fix] invalid token at login time --- bureau/admin/login.php | 10 ---------- bureau/class/m_mem.php | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/bureau/admin/login.php b/bureau/admin/login.php index 9cfe04af..833f6c66 100644 --- a/bureau/admin/login.php +++ b/bureau/admin/login.php @@ -31,16 +31,6 @@ require_once("../class/config.php"); -if (!$mem->checkid()) -{ - $error = $err->errstr(); - include("index.php"); - exit(); -} - -$mem->resetlast(); - header("Location: main.php"); -exit; ?> diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index b266a362..3146975d 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -164,6 +164,7 @@ class m_mem { $db->next_record(); $this->local = $db->Record; } + $this->resetlast(); return true; }