1
0
Alan Lam 7 жил өмнө
parent
commit
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() {
 
-		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"]
 		]);