Fix AuthenticationCookieTest failing test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
eea0e65f4a
commit
7ba844483c
@ -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;
|
||||
}
|
||||
|
||||
@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user