mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
ntlmsso login hook: MDL-18596 We need to call httpsrequired() before using httpswwwroot
Merged from MOODLE_19_STABLE
This commit is contained in:
parent
5e1f1a6e61
commit
265edb48f5
@ -1797,6 +1797,9 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
*/
|
||||
function loginpage_hook() {
|
||||
global $CFG, $SESSION;
|
||||
|
||||
// HTTPS is potentially required
|
||||
httpsrequired();
|
||||
|
||||
if (($_SERVER['REQUEST_METHOD'] === 'GET' // Only on initial GET of loginpage
|
||||
|| ($_SERVER['REQUEST_METHOD'] === 'POST'
|
||||
|
Loading…
x
Reference in New Issue
Block a user