}
if (!$auth->user_login_webservice($this->username, $this->password)) {
- // TODO: log failed login attempts
+ // TODO: MDL-12886 log failed login attempts
throw new webservice_access_exception('Wrong username or password');
}
} else {
if (!$token = $DB->get_record('external_tokens', array('token'=>$this->token, 'tokentype'=>EXTERNAL_TOKEN_PERMANENT))) {
- // TODO: log failed login attempts
+ // TODO: MDL-12886 log failed login attempts
throw new webservice_access_exception('Invalid token');
}
$PAGE->set_url('webservice/testclient.php');
require_login();
-require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); // TODO: do we need some new capability?
+require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
// list of all available functions for testing
$allfunctions = $DB->get_records('external_functions', array(), 'name ASC');