From 0cd631774b4a5604a3f187a1ce9df996d0a0e52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 4 Mar 2024 21:20:57 +0100 Subject: [PATCH] Fixed compatibility error with webauthn library which prevented 2FA via webauthn --- src/Entity/UserSystem/WebauthnKey.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Entity/UserSystem/WebauthnKey.php b/src/Entity/UserSystem/WebauthnKey.php index 42dc6d53..8c8fa951 100644 --- a/src/Entity/UserSystem/WebauthnKey.php +++ b/src/Entity/UserSystem/WebauthnKey.php @@ -48,6 +48,12 @@ class WebauthnKey extends BasePublicKeyCredentialSource implements TimeStampable #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'webauthn_keys')] protected ?User $user = null; + //Fix compatibility with webauthn-library >= 4.8 which would fail with an "failed to access uvInitialized before initialization" error otherwise + //TODO: Make these fields persistent, so that users can view these status infos in the UI + public ?bool $uvInitialized = null; + public ?bool $backupEligible = null; + public ?bool $backupStatus = null; + public function getName(): string { return $this->name;