diff --git a/system/login.php b/system/login.php index e820f4c8..284df886 100644 --- a/system/login.php +++ b/system/login.php @@ -84,9 +84,9 @@ else $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')) { $errors[] = GoogleReCAPTCHA::getErrorMessage(); } diff --git a/system/pages/createaccount.php b/system/pages/createaccount.php index 20cd0170..a118972f 100644 --- a/system/pages/createaccount.php +++ b/system/pages/createaccount.php @@ -74,7 +74,7 @@ if($save) if(config('recaptcha_enabled')) { - require LIBS . 'GoogleReCAPTCHA.php'; + require_once LIBS . 'GoogleReCAPTCHA.php'; if (!GoogleReCAPTCHA::verify('register')) { $errors['verification'] = GoogleReCAPTCHA::getErrorMessage(); }