Index: index.php =================================================================== RCS file: /cvsroot/moodle/moodle/login/index.php,v retrieving revision 1.129.2.3 diff -u -r1.129.2.3 index.php --- login/index.php 18 May 2008 21:26:57 -0000 1.129.2.3 +++ login/index.php 4 Feb 2009 13:08:37 -0000 @@ -273,7 +273,11 @@ } if (empty($frm->username) && $authsequence[0] != 'shibboleth') { // See bug 5184 - $frm->username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie(); + if ($_GET["username"]) { + $frm->username = $_GET["username"]; + } else { + $frm->username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie(); + } $frm->password = ""; }