mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-23 15:56:59 +00:00
TOTPSecondaryAuthenticationProvider: Avoid use of getModule()
Change-Id: Iec9be88a8e189b84263e0b2f567d7288b4e4321e
This commit is contained in:
parent
ffe501d64f
commit
bd4f71a97d
|
@ -67,7 +67,7 @@ class TOTPSecondaryAuthenticationProvider extends AbstractSecondaryAuthenticatio
|
|||
public function beginSecondaryAuthentication( $user, array $reqs ) {
|
||||
$authUser = $this->userRepository->findByUser( $user );
|
||||
|
||||
if ( !( $authUser->getModule() instanceof TOTP ) ) {
|
||||
if ( !$this->module->isEnabled( $authUser ) ) {
|
||||
return AuthenticationResponse::newAbstain();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue