Manual:Hooks/ExemptFromAccountCreationThrottle

ExemptFromAccountCreationThrottle
Available from version 1.19.0 (r95152)
To add an exemption from the account creation throttle
Define function:
public static function onExemptFromAccountCreationThrottle( $ip ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ExemptFromAccountCreationThrottle": "MyExtensionHooks::onExemptFromAccountCreationThrottle"
	}
}
Called from: File(s): specials/SpecialUserLogin.php
Interface: ExemptFromAccountCreationThrottleHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ExemptFromAccountCreationThrottle extensions.


DetailsEdit

Return false from the hook if the IP address should be exempted from the account creation throttle.

  • $ip: The ip address of the user