Manual:Hooks/ChangeAuthenticationDataAudit

Category:MediaWiki hooks#ChangeAuthenticationDataAudit Category:Hooks added in MediaWiki 1.27.0#ChangeAuthenticationDataAudit
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.phpCategory:MediaWiki hooks included in AuthManagerSpecialPage.php#ChangeAuthenticationDataAudit
Interface: ChangeAuthenticationDataAuditHook.php

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

Details

  • $req: a \MediaWiki\Auth\AuthenticationRequest object
  • $status: a StatusValue with the result

Before AuthManager, the PrefsPasswordAudit hook was used.

Category:Hooks added in MediaWiki 1.27.0 Category:MediaWiki hooks Category:MediaWiki hooks included in AuthManagerSpecialPage.php