]> git.mjollnir.org Git - moodle.git/commitdiff
Added "realuser" to USER variable to identify imposters
authormartin <martin>
Thu, 1 Aug 2002 07:04:31 +0000 (07:04 +0000)
committermartin <martin>
Thu, 1 Aug 2002 07:04:31 +0000 (07:04 +0000)
course/loginas.php

index 957483a10f18167bf79c8a7afbb947e2608f8e76..52f161e4829e396acf481404f84b586a6aa04b8a 100644 (file)
@@ -26,6 +26,7 @@
 
     $USER = get_user_info_from_db("id", $user);
     $USER->loggedin = true;
+    $USER->realuser = $teacher_name;
 
     set_moodle_cookie($USER->username);