aauth = new Aauth(); $this->request = Services::request(); helper('form'); } /** * Index * * @param string $verificationCode Verification Code * * @return void */ public function index(string $verificationCode = '') { if ($input = $this->request->getPost()) { if (! $this->aauth->resetPassword($input['verification_code'])) { $data['errors'] = $this->aauth->printErrors('
', true); } else { $data['infos'] = $this->aauth->printInfos('
', true); } } $data['verificationCode'] = $verificationCode; $data['cssFiles'] = [ '/assets/css/login.css' ]; echo view('Account/ResetPassword', $data); } }