store u2f challenges in the rpc environment
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
eaa62fca55
commit
7abd16a0d0
@ -80,7 +80,13 @@ sub auth_handler {
|
||||
|
||||
die "No ticket\n" if !$ticket;
|
||||
|
||||
($username, $age) = PVE::AccessControl::verify_ticket($ticket);
|
||||
($username, $age, my $challenge) = PVE::AccessControl::verify_ticket($ticket);
|
||||
|
||||
if (defined($challenge)) {
|
||||
$rpcenv->set_u2f_challenge($challenge);
|
||||
die "No ticket\n"
|
||||
if ($rel_uri ne '/access/u2f' || $method ne 'POST');
|
||||
}
|
||||
|
||||
$rpcenv->set_user($username);
|
||||
|
||||
|
Reference in New Issue
Block a user