mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 22:22:25 +00:00
u2f: new perl bindings encode public key for us
as it was binary data, which can contain everything, including '\0', and this was cut off, making it impossible to login after registration, as a borked publicKey got saved in tfa.cfg Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4473c96caf
commit
eb25cbafc3
@ -589,7 +589,7 @@ __PACKAGE__->register_method ({
|
||||
my ($keyHandle, $publicKey) = $u2f->registration_verify($response);
|
||||
PVE::AccessControl::user_set_tfa($userid, $realm, 'u2f', {
|
||||
keyHandle => $keyHandle,
|
||||
publicKey => encode_base64($publicKey, ''),
|
||||
publicKey => $publicKey, # already base64 encoded
|
||||
});
|
||||
} else {
|
||||
die "invalid action: $action\n";
|
||||
|
Loading…
Reference in New Issue
Block a user