From: moodler Date: Sat, 2 Oct 2004 15:22:11 +0000 (+0000) Subject: Set the sesskey for new admins X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=170ed2a1cf948ae7133957637bed62987e1396bb;p=moodle.git Set the sesskey for new admins --- diff --git a/admin/user.php b/admin/user.php index dce311dc84..77507b5451 100644 --- a/admin/user.php +++ b/admin/user.php @@ -57,6 +57,7 @@ $USER = $user; $USER->loggedin = true; + $USER->sesskey = random_string(10); // for added security, used to check script parameters $USER->site = $CFG->wwwroot; $USER->admin = true; $USER->teacher["$site->id"] = true;