Allow to delete Webauthn Keys

This commit is contained in:
Jan Böhmer 2022-10-04 00:16:10 +02:00
parent ac978abe1d
commit 9c688e22dc
2 changed files with 33 additions and 2 deletions

View file

@ -76,6 +76,10 @@ class BackupCodeManager
return;
}
if ($user->isWebAuthnAuthenticatorEnabled()) {
return;
}
$user->setBackupCodes([]);
}