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 warnings;
use URI::Escape;
use HTML::Entities;
use JSON;
use URI::Escape;
# FIXME: remove console code??
@ -67,7 +68,7 @@ sub new {
cookie_name => $config->{cookie_name},
apitoken_name => $config->{apitoken_name},
js => '',
};
}, $class;
if (my $username = $auth->{userid}) {
$self->{csrftoken} = $config->{csrfgen_func}->($username);