Merge "TOTPSecondaryAuthenticationProvider: Avoid use of getModule()"

This commit is contained in:
jenkins-bot 2024-11-06 14:55:22 +00:00 committed by Gerrit Code Review
commit 47c97efe69

View file

@ -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();
}