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:
martin 2002-09-05 02:04:00 +00:00
parent 97ea24e307
commit 403bb50d7b

View File

@ -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");