|
|
@@ -13,10 +13,10 @@ class Form {
|
|
|
|
|
|
public static function checkRecaptcha() {
|
|
|
|
|
|
- if(!defined("GOOGLE_RECAPTCHA_SECRET_KEY")) return true;
|
|
|
+ if(!defined("GOOGLE_RECAPTCHA_SECRET")) return true;
|
|
|
|
|
|
$json = http::post("https://www.google.com/recaptcha/api/siteverify", [
|
|
|
- "secret" => GOOGLE_RECAPTCHA_SECRET_KEY,
|
|
|
+ "secret" => GOOGLE_RECAPTCHA_SECRET,
|
|
|
"response" => http::value("g-recaptcha-response"),
|
|
|
"remoteip" => $_SERVER["REMOTE_ADDR"]
|
|
|
]);
|