From: moodler Date: Fri, 8 Oct 2004 13:16:34 +0000 (+0000) Subject: Make sure the new admin user has the sessionIP set properly the first time X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5526e0fa6471b152b5aaed02ad5972170eb3ec45;p=moodle.git Make sure the new admin user has the sessionIP set properly the first time --- 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;