Manual:Hooks/PrefsPasswordAudit

From MediaWiki.org
Jump to: navigation, search
PrefsPasswordAudit
Available from version 1.11.0
called when user changes his password

*Define function:
function fnMyHook( $user, $newPass, $error ) { ... }

*Attach hook:
$wgHooks['PrefsPasswordAudit'][] = 'MyExtensionHooks::someExample';
Called from: SpecialPreferences.php, SpecialResetpass.php

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

Note: Called from SpecialPreferences.php in versions 1.11.0 - 1.13. Called from SpecialResetpass.php from 1.14 onward

[edit] Details

  • $user: User (object) changing his password
  • $newPass: new password
  • $error: error (string) 'badretype', 'wrongpassword', 'error' or 'success'
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox