mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 11:54:41 +02:00
Added the possibility to delete a U2F key.
This commit is contained in:
parent
069293a843
commit
3e56352688
7 changed files with 89 additions and 24 deletions
|
@ -60,10 +60,5 @@ class BackupCodeManagerTest extends WebTestCase
|
|||
$user->setGoogleAuthenticatorSecret('jskf');
|
||||
$this->service->disableBackupCodesIfUnused($user);
|
||||
$this->assertEquals($codes, $user->getBackupCodes());
|
||||
|
||||
$user->setGoogleAuthenticatorSecret('');
|
||||
$user->addU2FKey(new U2FKey());
|
||||
$this->service->disableBackupCodesIfUnused($user);
|
||||
$this->assertEquals($codes, $user->getBackupCodes());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue