< Manual:Hooks
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": "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.

Details

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

Before AuthManager, the PrefsPasswordAudit hook was used.

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.