diff --git a/login/index.php b/login/index.php index 143c7b40a06..995fa98bed4 100644 --- a/login/index.php +++ b/login/index.php @@ -67,13 +67,13 @@ if (!empty($SESSION->has_timed_out)) { $session_has_timed_out = false; } -/// auth plugins may override these - SSO anyone? $frm = false; $user = false; $authsequence = get_enabled_auth_plugins(true); // auths, in sequence foreach($authsequence as $authname) { $authplugin = get_auth_plugin($authname); + // The auth plugin's loginpage_hook() can eventually set $frm and/or $user. $authplugin->loginpage_hook(); } @@ -132,7 +132,7 @@ if ($frm and isset($frm->username)) { // Login WITH } if ($user) { - //user already supplied by aut plugin prelogin hook + // The auth plugin has already provided the user via the loginpage_hook() called above. } else if (($frm->username == 'guest') and empty($CFG->guestloginbutton)) { $user = false; /// Can't log in as guest if guest button is disabled $frm = false;