From: Gergő Tisza Date: Tue, 7 Jun 2016 13:47:12 +0000 (+0000) Subject: Call ChangeAuthenticationDataAudit from the API X-Git-Tag: 1.31.0-rc.0~6698^2 X-Git-Url: http://git.cyclocoop.org/%27.generer_url_ecrire%28%27admin_couteau_suisse%27%2C%27cmd=descrip&outil=boites_privees?a=commitdiff_plain;h=8466e5c509bb8964e17b8eee2616dd6b0091af52;p=lhc%2Fweb%2Fwiklou.git Call ChangeAuthenticationDataAudit from the API Bug: T137193 Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba --- 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 ); }