mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-18138 added option to supply username as GET param - based on patch by Robert Allerstorfer; merged from MOODLE_19_STABLE
This commit is contained in:
parent
a91557ae6f
commit
450dcc603d
@ -256,7 +256,12 @@
|
||||
}
|
||||
|
||||
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 = "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user