Skip to content

Commit

Permalink
Fix missing footer in login pages #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jan 15, 2024
1 parent fead6ea commit ca319c2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions authentic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,18 @@ sub theme_header

sub theme_footer
{
return if (fetch_content());
if (get_env('script_name') =~ /password_change\.cgi$/) {
print "</body>";
return;
my $script_name = $ENV{'SCRIPT_NAME'};
if (index($script_name, 'session_login.cgi') != -1 ||
index($script_name, 'pam_login.cgi') != -1 ||
index($script_name, 'password_change.cgi') != -1)
{
print "</div>\n";
embed_js_scripts();
print "</body>\n";
print "</html>\n";
}

return if (fetch_content());
((!$miniserv::theme_header_captured && !$miniserv::page_capture) && return);
my %this_module_info = &get_module_info(&get_module_name());
for (my $i = 0; $i + 1 < @_; $i += 2) {
Expand Down Expand Up @@ -209,12 +216,6 @@ sub theme_footer
) if (!http_x_request());
embed_pm_scripts();

if (get_env('script_name') eq '/session_login.cgi' ||
get_env('script_name') eq '/pam_login.cgi')
{
embed_js_scripts();
}

if ($theme_config{'settings_hide_top_loader'} ne 'true' &&
get_env('script_name') ne '/session_login.cgi' &&
get_env('script_name') ne '/pam_login.cgi' &&
Expand Down

0 comments on commit ca319c2

Please sign in to comment.