Added possibility to show backup codes in user settings.

This commit is contained in:
Jan Böhmer 2019-12-27 18:21:12 +01:00
parent fba5f9794f
commit 604ebe420d
13 changed files with 288 additions and 6 deletions

View file

@ -764,7 +764,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
*/
public function getBackupCodes() : array
{
return $this->backupCodes;
return $this->backupCodes ?? [];
}
/**