mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-16 02:34:54 +02:00
[WIP] New GoogleReCAPTCHA code
Support for v3 v2-invisible doesn't work yet
This commit is contained in:
@@ -496,8 +496,10 @@ function template_header($is_admin = false)
|
||||
</noscript>
|
||||
';
|
||||
|
||||
if($config['recaptcha_enabled'])
|
||||
$ret .= "<script src='https://www.google.com/recaptcha/api.js'></script>";
|
||||
if(config('recaptcha_enabled')) {
|
||||
$ret .= '<script src="https://www.google.com/recaptcha/api.js' . (config('recaptcha_type') === 'v2-checkbox' ? '' : '?render=' . config('recaptcha_site_key')) . '"></script>';
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user