MediaWiki
1.33.1
|
Public Member Functions | |
__construct (array $conditions=null, array $params=[]) | |
clear ( $username=null, $ip=null) | |
Clear the throttle counter. More... | |
increase ( $username=null, $ip=null, $caller=null) | |
Increase the throttle counter and return whether the attempt should be throttled. More... | |
setLogger (LoggerInterface $logger) | |
Protected Member Functions | |
logRejection (array $context) | |
Static Protected Member Functions | |
static | normalizeThrottleConditions ( $throttleConditions) |
Handles B/C for $wgPasswordAttemptThrottle. More... | |
Protected Attributes | |
BagOStuff | $cache |
array | $conditions |
See documentation of $wgPasswordAttemptThrottle for format. More... | |
LoggerInterface | $logger |
string | $type |
int float | $warningLimit |
Definition at line 37 of file Throttler.php.
array | null | $conditions | An array of arrays describing throttling conditions. Defaults to $wgPasswordAttemptThrottle. See documentation of that variable for format. |
array | $params | Parameters (all optional):
|
Definition at line 63 of file Throttler.php.
References MediaWiki\Auth\Throttler\$conditions, MediaWiki\$config, $params, cache, conditions, Config\get(), MediaWiki\Logger\LoggerFactory\getInstance(), MediaWiki\MediaWikiServices\getInstance(), ObjectCache\getLocalClusterInstance(), MediaWiki\Auth\Throttler\setLogger(), and type.
Clear the throttle counter.
Should be called after a successful authentication attempt.
string | null | $username | |
string | null | $ip |
Definition at line 169 of file Throttler.php.
References $username, as, cache, conditions, null, and type.
Increase the throttle counter and return whether the attempt should be throttled.
Should be called before an authentication attempt.
string | null | $username | |
string | null | $ip | |
string | null | $caller | The authentication method from which we were called. |
Definition at line 113 of file Throttler.php.
References $username, as, cache, conditions, MediaWiki\Auth\Throttler\logRejection(), null, and type.
|
protected |
Definition at line 194 of file Throttler.php.
References MediaWiki\$context.
Referenced by MediaWiki\Auth\Throttler\increase().
|
staticprotected |
Handles B/C for $wgPasswordAttemptThrottle.
array | $throttleConditions |
Definition at line 184 of file Throttler.php.
MediaWiki\Auth\Throttler::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 95 of file Throttler.php.
References MediaWiki\Auth\Throttler\$logger.
Referenced by MediaWiki\Auth\Throttler\__construct().
|
protected |
Definition at line 48 of file Throttler.php.
|
protected |
See documentation of $wgPasswordAttemptThrottle for format.
Old (pre-1.27) format is not allowed here.
Definition at line 46 of file Throttler.php.
Referenced by MediaWiki\Auth\Throttler\__construct().
|
protected |
Definition at line 50 of file Throttler.php.
Referenced by MediaWiki\Auth\Throttler\setLogger().
|
protected |
Definition at line 39 of file Throttler.php.
|
protected |
Definition at line 52 of file Throttler.php.