$data = $res->{data};
my $html = '';
- my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path);
+ my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path, $auth);
if (!HTTP::Status::is_success($res->{status})) {
$html .= $doc->alert(text => "Error $res->{status}: $res->{message}");
code => sub {
my ($res, $data, $param, $path, $auth) = @_;
- my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path);
+ my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path, $auth);
my $html = &$login_form($doc);
# Note: HTTP server redirects to 'GET /access/ticket', so below
# output is not really visible.
- my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path);
+ my $doc = PVE::APIServer::Formatter::Bootstrap->new($res, $path, $auth);
my $html = &$login_form($doc);