mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-30 19:14:31 +00:00
Call OATHAuthUser::disable() in UserRepository::remove()
Ensures that the database and the user object will stay in sync. Change-Id: I36ed361594e24dfdb96e23fc5b04fa342ece6df5
This commit is contained in:
parent
0d35e253bf
commit
97abce5e90
|
@ -243,6 +243,8 @@ class OATHUserRepository implements LoggerAwareInterface {
|
||||||
->caller( __METHOD__ )
|
->caller( __METHOD__ )
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
$user->disable();
|
||||||
|
|
||||||
$userName = $user->getUser()->getName();
|
$userName = $user->getUser()->getName();
|
||||||
$this->cache->delete( $userName );
|
$this->cache->delete( $userName );
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,6 @@ class DisableOATHForUser extends FormSpecialPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->userRepo->remove( $oathUser, $this->getRequest()->getIP(), false );
|
$this->userRepo->remove( $oathUser, $this->getRequest()->getIP(), false );
|
||||||
$oathUser->disable();
|
|
||||||
|
|
||||||
// message used: logentry-oath-disable-other
|
// message used: logentry-oath-disable-other
|
||||||
$logEntry = new ManualLogEntry( 'oath', 'disable-other' );
|
$logEntry = new ManualLogEntry( 'oath', 'disable-other' );
|
||||||
|
|
Loading…
Reference in a new issue