Call ChangeAuthenticationDataAudit from the API
authorGergő Tisza <gtisza@wikimedia.org>
Tue, 7 Jun 2016 13:47:12 +0000 (13:47 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 7 Jun 2016 13:47:12 +0000 (13:47 +0000)
Bug: T137193
Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba

includes/api/ApiChangeAuthenticationData.php
includes/api/ApiRemoveAuthenticationData.php

index 54547ef..aea2819 100644 (file)
@@ -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 );
                }
index 30e40fb..d72c8a4 100644 (file)
@@ -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 );
                }