Merging fix for bug 2264 & improvements from MOODLE_14_STABLE
This commit is contained in:
+1
-1
@@ -62,12 +62,12 @@
|
||||
|
||||
$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;
|
||||
$USER->newadminuser = true;
|
||||
set_user_sesskey(); // for added security, used to check script parameters
|
||||
|
||||
redirect("$CFG->wwwroot/user/edit.php?id=$user->id&course=$site->id");
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user