isCLI()) { return; } $security = Services::security(); try { $security->CSRFVerify($request); } catch (SecurityException $e) { if (config('App')->CSRFRedirect && ! $request->isAJAX()) { return redirect()->back()->with('error', $e->getMessage()); } throw $e; } } //-------------------------------------------------------------------- /** * We don't have anything to do here. * * @param RequestInterface|\CodeIgniter\HTTP\IncomingRequest $request * @param ResponseInterface|\CodeIgniter\HTTP\Response $response * * @return mixed */ public function after(RequestInterface $request, ResponseInterface $response) { } //-------------------------------------------------------------------- }