MDL-18138 added option to supply username as GET param - based on patch by Robert Allerstorfer

This commit is contained in:
skodak
2009-02-07 22:54:04 +00:00
parent bb8b3cffe6
commit 85557feb30
+6 -1
View File
@@ -273,7 +273,12 @@ httpsrequired();
}
if (empty($frm->username) && $authsequence[0] != 'shibboleth') { // See bug 5184
$frm->username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie();
if (!empty($_GET["username"])) {
$frm->username = $_GET["username"];
} else {
$frm->username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie();
}
$frm->password = "";
}