Moved creation of guest user to login page - this means it can be

trashed any time and it will recreate itself as necessary.
This commit is contained in:
martin
2002-06-10 04:24:50 +00:00
parent b51e99130f
commit a9b07c5288
2 changed files with 17 additions and 14 deletions
-14
View File
@@ -44,20 +44,6 @@
$USER->admin = true;
$USER->teacher["$course->id"] = true;
// This is also a good time to make the Guest User
$user = NULL;
$user->firstname = "Guest";
$user->lastname = "User";
$user->username = "guest"; // This user is identified by this
$user->password = md5("guest");
$user->email = "root@localhost";
$user->confirmed = 1;
$user->timemodified = time();
if (! $guest->user = insert_record("user", $user)) {
notify("Could not create guest user record !!!");
}
}
require_login();