Skip to content

Commit 7ba8444

Browse files
committed
Fix AuthenticationCookieTest failing test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent eea0e65 commit 7ba8444

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

libraries/classes/Plugins/Auth/AuthenticationCookie.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ public function readCredentials(): bool
240240
&& ! empty($GLOBALS['cfg']['CaptchaLoginPublicKey'])
241241
) {
242242
if (empty($_POST[$GLOBALS['cfg']['CaptchaResponseParam']])) {
243-
$GLOBALS['conn_error'] = __(
244-
'Missing Captcha verification, maybe it has been blocked by adblock?',
245-
);
243+
$GLOBALS['conn_error'] = __('Missing Captcha verification, maybe it has been blocked by adblock?');
246244

247245
return false;
248246
}

test/classes/Plugins/Auth/AuthenticationCookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function testAuthCheckCaptcha(): void
370370
);
371371

372372
$this->assertEquals(
373-
'Missing reCAPTCHA verification, maybe it has been blocked by adblock?',
373+
'Missing Captcha verification, maybe it has been blocked by adblock?',
374374
$GLOBALS['conn_error'],
375375
);
376376
}

0 commit comments

Comments
 (0)