]> git.proxmox.com Git - pve-manager.git/commitdiff
pveproxy: use new cookie extraction method
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 21 Jan 2020 12:54:23 +0000 (13:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Jan 2020 09:27:06 +0000 (10:27 +0100)
we only care about the regular cookie case for the index.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Service/pveproxy.pm

index cbab6abe0f90a0ccac78e54deaa03b8c8c339635..571a6bf505a1f315b49408caeb5b24f80fc3bddf 100755 (executable)
@@ -184,7 +184,7 @@ sub get_index {
                $lang = $newlang;
            }
        }
-       my $ticket = PVE::APIServer::Formatter::extract_auth_cookie($cookie, $server->{cookie_name});
+       my $ticket = PVE::APIServer::Formatter::extract_auth_value($cookie, $server->{cookie_name});
        if (($username = PVE::AccessControl::verify_ticket($ticket, 1))) {
            $token = PVE::AccessControl::assemble_csrf_prevention_token($username);
        }