Make sure the new admin user has the sessionIP set properly the first time

This commit is contained in:
moodler
2004-10-08 13:16:34 +00:00
parent 3f3a1b360f
commit 5526e0fa64
+1
View File
@@ -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;