Support multiple limits and arbitrary periods in account creation throttle
authorcenarium <cenarium.sysop@gmail.com>
Tue, 20 Sep 2016 17:21:36 +0000 (19:21 +0200)
committercenarium <cenarium.sysop@gmail.com>
Thu, 22 Sep 2016 10:59:53 +0000 (12:59 +0200)
commit380ab6271806ca93c6d2472f4753915258e0619f
treece06a41157a00fc8833fb94511377ef863cba1f1
parent550ef848c738d654629ed6e8d0ef9b7511a9dc5d
Support multiple limits and arbitrary periods in account creation throttle

This adds support for multiple count-per-period limits and arbitrary
period durations in the AuthManager account creation throttle in the
wiki settings. The $wgAccountCreationThrottle config variable becomes
an array like $wgPasswordAttemptThrottle.

Bug: T146290
Change-Id: Iea182a92a1199b0ce7103ab9ae24f1c87b01985c
includes/DefaultSettings.php
includes/auth/ThrottlePreAuthenticationProvider.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/auth/ThrottlePreAuthenticationProviderTest.php