Skip to content

Commit

Permalink
Unset id on load if webauthn key not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Oct 16, 2024
1 parent 37a8f4e commit efde921
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Livewire/TwoFactorAuthentication/WebauthnKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public function webauthnKey(): ?WebauthnKeyModel
]);
}

public function mount(): void
{
if (! $this->webauthnKey) {
$this->id = null;
}
}

public function render(): string
{
return <<<'HTML'
Expand Down

0 comments on commit efde921

Please sign in to comment.