This commit is contained in:
2021-11-11 14:25:26 +01:00
parent 1737a2f592
commit 25d47f7528
32 changed files with 633 additions and 121 deletions

View File

@@ -47,9 +47,9 @@ class VerifyCaptcha extends Request {
$this->success = false;
$this->lastError = "Could not verify captcha: No response from google received.";
if($response) {
if ($response) {
$this->success = $response["success"];
if(!$this->success) {
if (!$this->success) {
$this->lastError = "Could not verify captcha: " . implode(";", $response["error-codes"]);
} else {
$score = $response["score"];