diff --git a/C4/Auth.pm b/C4/Auth.pm index ca061b5284..811151b628 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -19,6 +19,7 @@ package C4::Auth; use strict; use warnings; + use Digest::MD5 qw(md5_base64); use Storable qw(thaw freeze); use URI::Escape; @@ -1065,14 +1066,10 @@ 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; + + require C4::Output; + C4::Output::output_html_with_http_headers( $query, $cookie, + $template->output); safe_exit; } diff --git a/installer/InstallAuth.pm b/installer/InstallAuth.pm index 0015a14e2d..1a8a4df89f 100644 --- a/installer/InstallAuth.pm +++ b/installer/InstallAuth.pm @@ -26,7 +26,6 @@ use Digest::MD5 qw(md5_base64); require Exporter; use C4::Context; -use C4::Output; use C4::Templates; use C4::Koha; use CGI::Session; @@ -394,11 +393,9 @@ sub checkauth { -HttpOnly => 1, -expires => '' ); - print $query->header( - -type => 'text/html; charset=utf-8', - -cookie => $cookie - ), - $template->output; + + require C4::Output; + C4::Output::output_html_with_http_headers($query,$cookie,$template->output); exit; }