From 9f56d65b934a055f2157a3eb0dd98f91fd47498c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 16 May 2008 22:17:04 +0000 Subject: [PATCH] Previous admin session data will be destroyed while first admin registration process --- inc/modules/admin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/modules/admin.php b/inc/modules/admin.php index a8d2d13419..ad94f73f26 100644 --- a/inc/modules/admin.php +++ b/inc/modules/admin.php @@ -56,6 +56,12 @@ if (!isBooleanConstantAndTrue('admin_registered')) { // Hash the password with the old function because we are here in install mode $hashedPass = md5($_POST['pass']); + // Kill maybe existing session variables + set_session('admin_login' , ""); + set_session('admin_md5' , ""); + set_session('admin_last' , ""); + set_session('admin_to' , ""); + // Do registration $ret = REGISTER_ADMIN($_POST['login'], $hashedPass); switch ($ret) -- 2.39.5