public function trusted_login($username) { if ($GLOBALS['midcom_config']['auth_allow_trusted'] !== true) { debug_add("Trusted logins are prohibited", MIDCOM_LOG_ERROR); return false; } return $this->_auth_backend->create_trusted_login_session($username); }