From 403bb50d7b283353d2ed75f11a9f7a960d4db25f Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 5 Sep 2002 02:04:00 +0000 Subject: [PATCH] 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. --- admin/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/user.php b/admin/user.php index d34c4d0b57..c4aa814519 100644 --- a/admin/user.php +++ b/admin/user.php @@ -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"); -- 2.39.5