Manual:Hooks/ChangeAuthenticationDataAudit
Appearance
From mediawiki.org
| ChangeAuthenticationDataAudit | |
|---|---|
| Available from version 1.27.0 called when user changes authentication data | |
| Define function: | public static function onChangeAuthenticationDataAudit( $req, $status ) { ... } |
| Attach hook: | In extension.json:
{ "Hooks":{ "ChangeAuthenticationDataAudit":"MediaWiki\\Extension\\MyExtension\\Hooks::onChangeAuthenticationDataAudit" } } |
| Called from: | File(s): specialpage/AuthManagerSpecialPage.php |
| Interface: | ChangeAuthenticationDataAuditHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ChangeAuthenticationDataAudit extensions.
Details
[edit ]- $req: a
\MediaWiki\Auth\AuthenticationRequestobject - $status: a
StatusValuewith the result
Before AuthManager, the PrefsPasswordAudit hook was used.