[pve-devel] [PATCH v2 06/10] PVE/Service/pveproxy.pm: avoid using PVE::REST
Dietmar Maurer
dietmar at proxmox.com
Tue Jan 10 17:06:03 CET 2017
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/Service/pveproxy.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Service/pveproxy.pm b/PVE/Service/pveproxy.pm
index 215b05c..f43ffe2 100755
--- a/PVE/Service/pveproxy.pm
+++ b/PVE/Service/pveproxy.pm
@@ -181,7 +181,7 @@ sub get_index {
$lang = $newlang;
}
}
- my $ticket = PVE::REST::extract_auth_cookie($cookie);
+ my $ticket = $server->extract_auth_cookie($cookie);
if (($username = PVE::AccessControl::verify_ticket($ticket, 1))) {
$token = PVE::AccessControl::assemble_csrf_prevention_token($username);
}
--
2.1.4
More information about the pve-devel
mailing list