mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Change GoogleReCAPTCHA.php to require_once
because conflicts with account_create_auto_login
This commit is contained in:
parent
e737cf612c
commit
036abf83e5
@ -84,9 +84,9 @@ else
|
|||||||
$t = isset($tmp[$ip]) ? $tmp[$ip] : NULL;
|
$t = isset($tmp[$ip]) ? $tmp[$ip] : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(config('recaptcha_enabled'))
|
if(config('recaptcha_enabled') && !config('account_create_auto_login'))
|
||||||
{
|
{
|
||||||
require LIBS . 'GoogleReCAPTCHA.php';
|
require_once LIBS . 'GoogleReCAPTCHA.php';
|
||||||
if (!GoogleReCAPTCHA::verify('login')) {
|
if (!GoogleReCAPTCHA::verify('login')) {
|
||||||
$errors[] = GoogleReCAPTCHA::getErrorMessage();
|
$errors[] = GoogleReCAPTCHA::getErrorMessage();
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ if($save)
|
|||||||
|
|
||||||
if(config('recaptcha_enabled'))
|
if(config('recaptcha_enabled'))
|
||||||
{
|
{
|
||||||
require LIBS . 'GoogleReCAPTCHA.php';
|
require_once LIBS . 'GoogleReCAPTCHA.php';
|
||||||
if (!GoogleReCAPTCHA::verify('register')) {
|
if (!GoogleReCAPTCHA::verify('register')) {
|
||||||
$errors['verification'] = GoogleReCAPTCHA::getErrorMessage();
|
$errors['verification'] = GoogleReCAPTCHA::getErrorMessage();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user