From: martin Date: Thu, 1 Aug 2002 07:04:31 +0000 (+0000) Subject: Added "realuser" to USER variable to identify imposters X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bae30970953f60c9958830e02a2b140c19808ebe;p=moodle.git Added "realuser" to USER variable to identify imposters --- diff --git a/course/loginas.php b/course/loginas.php index 957483a10f..52f161e482 100644 --- a/course/loginas.php +++ b/course/loginas.php @@ -26,6 +26,7 @@ $USER = get_user_info_from_db("id", $user); $USER->loggedin = true; + $USER->realuser = $teacher_name; set_moodle_cookie($USER->username);