From 8466e5c509bb8964e17b8eee2616dd6b0091af52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Tue, 7 Jun 2016 13:47:12 +0000 Subject: [PATCH] Call ChangeAuthenticationDataAudit from the API Bug: T137193 Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba --- includes/api/ApiChangeAuthenticationData.php | 1 + includes/api/ApiRemoveAuthenticationData.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/api/ApiChangeAuthenticationData.php b/includes/api/ApiChangeAuthenticationData.php index 54547efe4b..aea28195f0 100644 --- a/includes/api/ApiChangeAuthenticationData.php +++ b/includes/api/ApiChangeAuthenticationData.php @@ -56,6 +56,7 @@ class ApiChangeAuthenticationData extends ApiBase { // Make the change $status = $manager->allowsAuthenticationDataChange( $req, true ); + Hooks::run( 'ChangeAuthenticationDataAudit', [ $req, $status ] ); if ( !$status->isGood() ) { $this->dieStatus( $status ); } diff --git a/includes/api/ApiRemoveAuthenticationData.php b/includes/api/ApiRemoveAuthenticationData.php index 30e40fb2b6..d72c8a407e 100644 --- a/includes/api/ApiRemoveAuthenticationData.php +++ b/includes/api/ApiRemoveAuthenticationData.php @@ -73,6 +73,7 @@ class ApiRemoveAuthenticationData extends ApiBase { // Perform the removal $status = $manager->allowsAuthenticationDataChange( $req, true ); + Hooks::run( 'ChangeAuthenticationDataAudit', [ $req, $status ] ); if ( !$status->isGood() ) { $this->dieStatus( $status ); } -- 2.20.1