mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +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
|
@ -161,6 +161,15 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
return $this->user;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary key ID of this key
|
||||
* @return int
|
||||
*/
|
||||
public function getID() : int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the user this U2F key belongs to.
|
||||
* @param TwoFactorInterface $new_user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue