Manual:Hooks/SpecialPasswordResetOnSubmit
From MediaWiki.org
| SpecialPasswordResetOnSubmit | |
|---|---|
| Available from version 1.18.0 (r86482) Called when executing a form submission on Special:PasswordReset. |
|
Define function: |
public static function onSpecialPasswordResetOnSubmit( $users, $data, &$error ) { ... }
|
Attach hook: |
$wgHooks['SpecialPasswordResetOnSubmit'][] = 'MyExtensionHooks::onSpecialPasswordResetOnSubmit'; |
| Called from: | SpecialPasswordReset.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialPasswordResetOnSubmit extensions.
[edit] Details
- $users: array of User objects
- $data: array of data submitted by the user
- &$error: string, error code (message name) used to describe to error (out paramater). The hook needs to return false when setting this, otherwise it will have no effect.