mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-23 15:56:59 +00:00
Merge "TOTPSecondaryAuthenticationProvider: Avoid use of getModule()"
This commit is contained in:
commit
47c97efe69
|
@ -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