version 1.55, 2021/05/04 18:47:37
|
version 1.56, 2021/06/27 17:25:47
|
Line 57 sub do_redirect {
|
Line 57 sub do_redirect {
|
my ($r,$url,$only_body,$extra_text) = @_; |
my ($r,$url,$only_body,$extra_text) = @_; |
$r->send_http_header; |
$r->send_http_header; |
my $delay = 0.5; |
my $delay = 0.5; |
if ($only_body) { |
if ($only_body && !$extra_text) { |
$delay = 0; |
$delay = 0; |
} |
} |
my $start_page = |
my $start_page = |
Line 291 sub handler {
|
Line 291 sub handler {
|
if ($env{'form.symb'}) { |
if ($env{'form.symb'}) { |
$info{'symb'} = $env{'form.symb'}; |
$info{'symb'} = $env{'form.symb'}; |
} |
} |
|
my $ssologoutscript = ''; |
if ($env{'request.sso.login'}) { |
if ($env{'request.sso.login'}) { |
$info{'sso.login'} = $env{'request.sso.login'}; |
$info{'sso.login'} = $env{'request.sso.login'}; |
|
my $dom = $env{'user.domain'}; |
|
if (defined($r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
|
if (open(my $fh,'<',$r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
|
$ssologoutscript .= join('',<$fh>); |
|
close($fh); |
|
} |
|
} |
|
if ($env{'request.sso.login'} |
|
&& defined($r->dir_config('lonSSOUserLogoutScriptFile'))) { |
|
if (open(my $fh,'<',$r->dir_config('lonSSOUserLogoutScriptFile'))) { |
|
$ssologoutscript .= join('',<$fh>); |
|
close($fh); |
|
} |
|
} |
} |
} |
if ($env{'request.sso.reloginserver'}) { |
if ($env{'request.sso.reloginserver'}) { |
$info{'sso.reloginserver'} = $env{'request.sso.reloginserver'}; |
$info{'sso.reloginserver'} = $env{'request.sso.reloginserver'}; |
Line 345 sub handler {
|
Line 360 sub handler {
|
'&username='.$env{'user.name'}. |
'&username='.$env{'user.name'}. |
'&token='.$token; |
'&token='.$token; |
# --------------------------------------------------------------- Screen Output |
# --------------------------------------------------------------- Screen Output |
return &do_redirect($r, $url, $only_body); |
return &do_redirect($r, $url, $only_body, $ssologoutscript); |
} |
} |
|
|
1; |
1; |