Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure the new admin user has the sessionIP set properly the first…
… time
  • Loading branch information
moodler committed Oct 8, 2004
1 parent 3f3a1b3 commit 5526e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/user.php
Expand Up @@ -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;
Expand Down

0 comments on commit 5526e0f

Please sign in to comment.