Permalink
Browse files

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.
  • Loading branch information...
1 parent 97ea24e commit 403bb50d7b283353d2ed75f11a9f7a960d4db25f martin committed Sep 5, 2002
Showing with 2 additions and 1 deletion.
  1. +2 −1 admin/user.php
View
@@ -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");

0 comments on commit 403bb50

Please sign in to comment.