Fix AuthenticationCookieTest failing test

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-08-26 18:50:40 -03:00
parent eea0e65f4a
commit 7ba844483c
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 2 additions and 4 deletions

View File

@ -240,9 +240,7 @@ class AuthenticationCookie extends AuthenticationPlugin
&& ! empty($GLOBALS['cfg']['CaptchaLoginPublicKey'])
) {
if (empty($_POST[$GLOBALS['cfg']['CaptchaResponseParam']])) {
$GLOBALS['conn_error'] = __(
'Missing Captcha verification, maybe it has been blocked by adblock?',
);
$GLOBALS['conn_error'] = __('Missing Captcha verification, maybe it has been blocked by adblock?');
return false;
}

View File

@ -370,7 +370,7 @@ class AuthenticationCookieTest extends AbstractTestCase
);
$this->assertEquals(
'Missing reCAPTCHA verification, maybe it has been blocked by adblock?',
'Missing Captcha verification, maybe it has been blocked by adblock?',
$GLOBALS['conn_error'],
);
}