Add explicit parentheses around mixed boolean operator

Mixing different binary boolean operators within an expression
without using parentheses to clarify precedence is not allowed (T358966)

Change-Id: I908691348d259d868f39a7737614be82c9ce0c75
This commit is contained in:
Umherirrender 2024-03-23 00:33:23 +01:00
parent a1a566a1c1
commit bcdde67ebd

View file

@ -59,7 +59,7 @@ class CaptchaPreAuthenticationProvider extends AbstractPreAuthenticationProvider
if (
$loginCounter->isBadLoginTriggered()
|| $userProbablyNeedsCaptcha
|| $suggestedUsername && $loginCounter->isBadLoginPerUserTriggered( $suggestedUsername )
|| ( $suggestedUsername && $loginCounter->isBadLoginPerUserTriggered( $suggestedUsername ) )
) {
$needed = true;
$captcha->setAction( 'badlogin' );