mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
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:
parent
a1a566a1c1
commit
bcdde67ebd
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue