View | Details | Raw Unified | Return to bug 38365
Collapse All | Expand All

(-)a/C4/Auth.pm (-1 / +5 lines)
Lines 692-697 sub get_template_and_user { Link Here
692
    $template->param( logged_in_user => $patron );
692
    $template->param( logged_in_user => $patron );
693
    $template->param( sessionID      => $sessionID );
693
    $template->param( sessionID      => $sessionID );
694
694
695
    my $csp_nonce = Koha::Token->new()->generate( { pattern => '\w{10}' } );
696
    my $cache     = Koha::Cache::Memory::Lite->get_instance();
697
    $cache->set_in_cache( 'csp_nonce', $csp_nonce );
698
    $template->param( csp_nonce => $csp_nonce );
699
695
    return ( $template, $borrowernumber, $cookie, $flags );
700
    return ( $template, $borrowernumber, $cookie, $flags );
696
}
701
}
697
702
698
- 

Return to bug 38365