/** * Process the login interface */ public static function processLoginUI(&$errmsg = null) { if (!empty($_REQUEST["login_form_submit"])) { if (isset($_REQUEST["user_id"])) { $username = User::getObject($_REQUEST["user_id"])->getUsername(); } else { if (isset($_REQUEST["username"])) { $username = $_REQUEST["username"]; } } if (isset($_REQUEST["password"])) { $password = $_REQUEST["password"]; } // Authenticating the user through the selected auth source. $network = Network::processSelectUI('auth_source'); $user = $network->getAuthenticator()->login($username, $password, $errmsg); self::$_loginLastError = $errmsg; } }