mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #2361 from nextcloud/2fa-backup-codes-undefined-index
fix undefined index error when the backup codes provider is not active
This commit is contained in:
commit
1887fd32f1
1 changed files with 3 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue