mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +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 (
|
if (
|
||||||
$loginCounter->isBadLoginTriggered()
|
$loginCounter->isBadLoginTriggered()
|
||||||
|| $userProbablyNeedsCaptcha
|
|| $userProbablyNeedsCaptcha
|
||||||
|| $suggestedUsername && $loginCounter->isBadLoginPerUserTriggered( $suggestedUsername )
|
|| ( $suggestedUsername && $loginCounter->isBadLoginPerUserTriggered( $suggestedUsername ) )
|
||||||
) {
|
) {
|
||||||
$needed = true;
|
$needed = true;
|
||||||
$captcha->setAction( 'badlogin' );
|
$captcha->setAction( 'badlogin' );
|
||||||
|
|
Loading…
Reference in a new issue