mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed issue that U2F keys did not work.
The DB length for this field was too short, so the key handles were cut off and devices were not recognized.
This commit is contained in:
parent
dae29cadd0
commit
e8f83f188a
2 changed files with 38 additions and 3 deletions
|
@ -59,15 +59,15 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
use TimestampTrait;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=64)
|
||||
*
|
||||
* We have to restrict the length here, as InnoDB only supports key index with max. 767 Bytes.
|
||||
* Max length of keyhandles should be 128. (According to U2F_MAX_KH_SIZE in FIDO example C code).
|
||||
* @ORM\Column(type="string", length=128)
|
||||
* @var string
|
||||
**/
|
||||
public $keyHandle;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*
|
||||
* @var string
|
||||
**/
|
||||
public $publicKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue