Browse Source

Captcha was replaced by an alternative method

FusionPBX 1 năm trước cách đây
mục cha
commit
90e0932c88
1 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 7
      index.php

+ 1 - 7
index.php

@@ -89,12 +89,6 @@
 	$_SESSION['keys'][$key_name] = bin2hex(random_bytes(32));
 	$_SESSION['token'] = hash_hmac('sha256', $key_name, $_SESSION['keys'][$key_name]);
 
-//generate the captcha image
-	$_SESSION['captcha'] = generate_password(7, 2);
-	$captcha = new captcha;
-	$captcha->code = $_SESSION['captcha'];
-	$image_base64 = $captcha->image_base64();
-
 ?>
 
 <html>
@@ -354,4 +348,4 @@
 </script>
 
 </body>
-</html>
+</html>