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": "MyExtensionHooks::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.


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

Before AuthManager, the PrefsPasswordAudit hook was used.