bootstrap formater: fix one-argument "bless" and code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-04-14 17:44:42 +02:00
parent da8543517e
commit 9ecc949c68

View File

@ -2,9 +2,10 @@ package PVE::APIServer::Formatter::Bootstrap;
use strict; use strict;
use warnings; use warnings;
use URI::Escape;
use HTML::Entities; use HTML::Entities;
use JSON; use JSON;
use URI::Escape;
# FIXME: remove console code?? # FIXME: remove console code??
@ -67,7 +68,7 @@ sub new {
cookie_name => $config->{cookie_name}, cookie_name => $config->{cookie_name},
apitoken_name => $config->{apitoken_name}, apitoken_name => $config->{apitoken_name},
js => '', js => '',
}; }, $class;
if (my $username = $auth->{userid}) { if (my $username = $auth->{userid}) {
$self->{csrftoken} = $config->{csrfgen_func}->($username); $self->{csrftoken} = $config->{csrfgen_func}->($username);