[WIP] New GoogleReCAPTCHA code

Support for v3
v2-invisible doesn't work yet
This commit is contained in:
slawkens
2020-10-15 19:55:12 +02:00
parent 881a28138a
commit 1a36aa8904
9 changed files with 178 additions and 25 deletions

View File

@@ -127,9 +127,13 @@ $config = array(
// reCAPTCHA (prevent spam bots)
'recaptcha_enabled' => false, // enable recaptcha verification code
'recaptcha_type' => 'v3', // 'v2-checkbox', 'v2-invisible', 'v3'
'recaptcha_site_key' => '', // get your own site and secret keys at https://www.google.com/recaptcha
'recaptcha_secret_key' => '',
'recaptcha_theme' => 'light', // light, dark
// min score for validation, between 0 - 1.0
// https://developers.google.com/recaptcha/docs/v3#interpreting_the_score
'recaptcha_v3_min_score' => 1.1,
//
'generate_new_reckey' => true, // let player generate new recovery key, he will receive e-mail with new rec key (not display on page, hacker can't generate rec key)