public function getFailedAction() { if ($this->request->isPost()) { if ($this->request->isAjax()) { if ($this->token->check('token')) { $records = UsersFailedAttempts::find()->toArray(); $data = array('data' => $records); return $this->sendAjax($data); } } } }