Call ChangeAuthenticationDataAudit from the API

Bug: T137193
Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba
This commit is contained in:
Gergő Tisza 2016-06-07 13:47:12 +00:00
parent 3e51626fb8
commit 8466e5c509
2 changed files with 2 additions and 0 deletions

View 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 );
}

View 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 );
}