diff options
Diffstat (limited to 'lib/private/Authentication/TwoFactorAuth/Manager.php')
-rw-r--r-- | lib/private/Authentication/TwoFactorAuth/Manager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/Manager.php b/lib/private/Authentication/TwoFactorAuth/Manager.php index d84ba4aee7e..48792aa685b 100644 --- a/lib/private/Authentication/TwoFactorAuth/Manager.php +++ b/lib/private/Authentication/TwoFactorAuth/Manager.php @@ -106,6 +106,9 @@ class Manager { */ public function getBackupProvider(IUser $user) { $providers = $this->getProviders($user, true); + if (!isset($providers[self::BACKUP_CODES_PROVIDER_ID])) { + return null; + } return $providers[self::BACKUP_CODES_PROVIDER_ID]; } |