mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-08-12 09:32:07 +00:00
bootstrap formater: fix one-argument "bless" and code style
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
da8543517e
commit
9ecc949c68
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user