request->getPost(); $validator = new VerifyValidator(); $post['email'] = $validator->checkEmail($post['email']); $captcha = $this->getSettings('captcha'); if ($captcha['enabled'] == 1) { $validator = new CaptchaValidator(); $validator->checkCode($post['ticket'], $post['rand']); } $service = new MailVerifyService(); $service->handle($post['email']); } }