Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($request->getPost('is_captcha') == 'true'){
- CModule::IncludeModule('iqonline.recaptcha');
- $res_captcha = iqonline\recaptcha\recaptcha::check_recaptcha($_REQUEST['g-recaptcha-response']);
- if (!$res_captcha['success']) {
- $arResult["ERROR_MESSAGE"][] = Loc::getMessage("WRONG_CAPTCHA")."<br />";
- }
- }
- #OLD CAPTCHA
- // if(!empty($captchaSid) && !$APPLICATION->CaptchaCheckCode($captchaWord, $captchaSid)){
- // $arResult["ERROR_MESSAGE"][] = Loc::getMessage("WRONG_CAPTCHA")."<br />";
- // }
Add Comment
Please, Sign In to add comment