From 5526e0fa6471b152b5aaed02ad5972170eb3ec45 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 8 Oct 2004 13:16:34 +0000 Subject: [PATCH] Make sure the new admin user has the sessionIP set properly the first time --- admin/user.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/user.php b/admin/user.php index 4af033c8be..9f7465d608 100644 --- a/admin/user.php +++ b/admin/user.php @@ -58,6 +58,7 @@ $USER = $user; $USER->loggedin = true; $USER->sesskey = random_string(10); // for added security, used to check script parameters + $user->sessionIP = md5(getremoteaddr()); // Store the current IP in the session $USER->site = $CFG->wwwroot; $USER->admin = true; $USER->teacher["$site->id"] = true; -- 2.39.5