mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-27 17:50:15 +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