Added the possibility to delete a U2F key.

This commit is contained in:
Jan Böhmer 2019-12-29 16:20:09 +01:00
parent 069293a843
commit 3e56352688
7 changed files with 89 additions and 24 deletions

View file

@ -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