mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
BUG FIX: In the last version I introduced a new security feature
(keeping the site URL stored in the USER session object) but forgot to add this to the brand new admin user - causing it to fail. Fixed.
This commit is contained in:
parent
97ea24e307
commit
403bb50d7b
@ -8,7 +8,7 @@
|
||||
$user->firstname = "Admin";
|
||||
$user->lastname = "User";
|
||||
$user->username = "admin";
|
||||
$user->password = "";
|
||||
$user->password = md5("admin");
|
||||
$user->email = "root@localhost";
|
||||
$user->confirmed = 1;
|
||||
$user->maildisplay = 1;
|
||||
@ -41,6 +41,7 @@
|
||||
|
||||
$USER = $user;
|
||||
$USER->loggedin = true;
|
||||
$USER->site = $CFG->wwwroot;
|
||||
$USER->admin = true;
|
||||
$USER->teacher["$site->id"] = true;
|
||||
save_session("USER");
|
||||
|
Loading…
x
Reference in New Issue
Block a user