| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\SpecialPage\Hook; |
| 4 | |
| 5 | use MediaWiki\Auth\AuthenticationRequest; |
| 6 | use StatusValue; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "ChangeAuthenticationDataAudit" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface ChangeAuthenticationDataAuditHook { |
| 16 | /** |
| 17 | * This hook is called when a user changes their password. |
| 18 | * No return data is accepted; this hook is for auditing only. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * |
| 22 | * @param AuthenticationRequest $req Object describing the change (and target user) |
| 23 | * @param StatusValue $status StatusValue with the result of the action |
| 24 | * @return bool|void True or no return value to continue or false to abort |
| 25 | */ |
| 26 | public function onChangeAuthenticationDataAudit( $req, $status ); |
| 27 | } |