$template->param( logged_in_user => $patron );
$template->param( sessionID => $sessionID );
my $csp_nonce = Koha::Token->new()->generate( { pattern => '\w{10}' } );
my $cache = Koha::Cache::Memory::Lite->get_instance();
$cache->set_in_cache( 'csp_nonce', $csp_nonce );
$template->param( csp_nonce => $csp_nonce );
return ( $template, $borrowernumber, $cookie, $flags );
}
-