container['dispatcher']->dispatch('api.bootstrap', new Event); if (! ($username === 'jsonrpc' && $password === $this->config->get('api_token'))) { throw new AuthenticationFailure('Wrond credentials'); } } }