handle google captcha
This commit is contained in:
@ -2970,18 +2970,18 @@ class google{
|
|||||||
|
|
||||||
return $time;
|
return $time;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function detect_sorry(){
|
private function detect_sorry(){
|
||||||
|
|
||||||
$recaptcha =
|
$captcha_form =
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
->getElementById(
|
->getElementById(
|
||||||
"recaptcha",
|
"captcha-form",
|
||||||
"div"
|
"form"
|
||||||
);
|
);
|
||||||
|
|
||||||
if($recaptcha !== false){
|
if($captcha_form !== false){
|
||||||
|
|
||||||
throw new Exception("Google returned a captcha");
|
throw new Exception("Google returned a captcha");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user