Refactor Google ReCaptcha code (#325)

Removed duplicated code (store it in function/general.php)

Captcha doesn't need cURL (made it configurable and optional)
This commit is contained in:
slawkens
2018-06-04 12:41:49 +02:00
committed by Stefan A. Brannfjell
parent b6f30e63fc
commit 0478566020
5 changed files with 36 additions and 62 deletions

View File

@@ -780,6 +780,7 @@
$config['use_captcha'] = false;
$config['captcha_site_key'] = "Site key";
$config['captcha_secret_key'] = "Secret key";
$config['captcha_use_curl'] = false; // Set to false if you don't have cURL installed, otherwise set it to true
// Session prefix, if you are hosting multiple sites, make the session name different to avoid conflict.
$config['session_prefix'] = 'znote_';