mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 12:13:25 +02:00
[WIP] New GoogleReCAPTCHA code
Support for v3 v2-invisible doesn't work yet
This commit is contained in:
@@ -84,6 +84,14 @@ else
|
||||
$t = isset($tmp[$ip]) ? $tmp[$ip] : NULL;
|
||||
}
|
||||
|
||||
if(config('recaptcha_enabled'))
|
||||
{
|
||||
require LIBS . 'GoogleReCAPTCHA.php';
|
||||
if (!GoogleReCAPTCHA::verify('login')) {
|
||||
$errors[] = GoogleReCAPTCHA::getErrorMessage();
|
||||
}
|
||||
}
|
||||
|
||||
$account_logged = new OTS_Account();
|
||||
if(USE_ACCOUNT_NAME)
|
||||
$account_logged->find($login_account);
|
||||
|
Reference in New Issue
Block a user