From a44d8bf11033b946a2050082ed6563153e666a59 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 27 Feb 2007 03:22:13 +0000 Subject: [PATCH] r1423: In login.php, we need to get the user ID in order to do a cplogin --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 119f2c3..2aea9a8 100755 --- a/login.php +++ b/login.php @@ -74,7 +74,7 @@ if ($_POST['do'] == 'login' OR $_POST['do'] == 'cplogin') { $hash = $funct->rand(90); $db->query("DELETE FROM " . TABLE_PREFIX . "adminsession WHERE dateline < " . (TIMENOW - 3600)); - $db->query("INSERT INTO " . TABLE_PREFIX . "adminsession (sessionid, userid, dateline) VALUES ('$hash', $userinfo[userid], " . TIMENOW . ")"); + $db->query("INSERT INTO " . TABLE_PREFIX . "adminsession (sessionid, userid, dateline) VALUES ('$hash', " . $auth->bugdarUser['userid'] . ", " . TIMENOW . ")"); $funct->cookie(COOKIE_PREFIX . 'adminsession', $hash, false); } $message->redirect(_('Welcome back! You are now logged in.'), $url); -- 2.43.5