X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2FLogout.html;h=beee12955a3e5072f50ea9633cea215052853cc4;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=103ae4fb5eff22b1bbc5019f2ebcb38ba9d6915d;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/NoAuth/Logout.html b/rt/share/html/NoAuth/Logout.html index 103ae4fb5..beee12955 100755 --- a/rt/share/html/NoAuth/Logout.html +++ b/rt/share/html/NoAuth/Logout.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,7 +45,7 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<& /Elements/Header, Title => loc('Logout'), Refresh => RT->Config->Get('LogoutRefresh').";URL=$URL" &> +<& /Elements/Header, Title => loc('Logout'), Refresh => RT->Config->Get('LogoutRefresh') &>
@@ -71,14 +71,15 @@ my $URL = RT->Config->Get('WebPath')."/"; # Allow a callback to modify the URL we redirect to, which is useful for # external webauth systems -$m->callback( %ARGS, URL => \$URL ); +$m->callback( %ARGS, CallbackName => 'ModifyLoginRedirect', URL => \$URL ); $m->callback( %ARGS, CallbackName => 'BeforeSessionDelete' ); if (keys %session) { - tied(%session)->delete; + RT::Interface::Web::InstantiateNewSession(); $session{'CurrentUser'} = RT::CurrentUser->new; } $m->callback( %ARGS, CallbackName => 'AfterSessionDelete' ); +$m->notes->{RefreshURL} = $URL;