Call ChangeAuthenticationDataAudit from the API
Bug: T137193 Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba
This commit is contained in:
parent
3e51626fb8
commit
8466e5c509
2 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue