@@ -, +, @@ --- C4/Auth.pm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -19,12 +19,14 @@ package C4::Auth; use strict; use warnings; + use Digest::MD5 qw(md5_base64); use Storable qw(thaw freeze); use URI::Escape; use CGI::Session; require Exporter; +use C4::Output; use C4::Context; use C4::Templates; # to get the template use C4::Branch; # GetBranches @@ -1065,14 +1067,8 @@ sub checkauth { LibraryName => C4::Context->preference("LibraryName"), ); $template->param( %info ); -# $cookie = $query->cookie(CGISESSID => $session->id -# ); - print $query->header( - -type => 'text/html', - -charset => 'utf-8', - -cookie => $cookie - ), - $template->output; + + output_html_with_http_headers $query, $cookie, $template->output; safe_exit; } --