Alan Lam 7 роки тому
батько
коміт
2187f995ad
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      engine/form.php

+ 2 - 2
engine/form.php

@@ -13,10 +13,10 @@ class Form {
 
 
 	public static function checkRecaptcha() {
 	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", [
 		$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"),
 			"response" => http::value("g-recaptcha-response"),
 			"remoteip" => $_SERVER["REMOTE_ADDR"]
 			"remoteip" => $_SERVER["REMOTE_ADDR"]
 		]);
 		]);