mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Allow to delete Webauthn Keys
This commit is contained in:
parent
ac978abe1d
commit
9c688e22dc
2 changed files with 33 additions and 2 deletions
|
@ -76,6 +76,10 @@ class BackupCodeManager
|
|||
return;
|
||||
}
|
||||
|
||||
if ($user->isWebAuthnAuthenticatorEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$user->setBackupCodes([]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue