mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Added possibility to show backup codes in user settings.
This commit is contained in:
@@ -764,7 +764,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||
*/
|
||||
public function getBackupCodes() : array
|
||||
{
|
||||
return $this->backupCodes;
|
||||
return $this->backupCodes ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user