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['captcha']['ticket'], $post['captcha']['rand']); } $service = new MailVerifyService(); $service->handle($post['email']); } }