Fix autoPost detection (#2799)
This commit is contained in:
parent
fddab8f0f2
commit
fe9980328b
|
@ -303,16 +303,16 @@ sub deleteSession {
|
||||||
$req->userData( {} );
|
$req->userData( {} );
|
||||||
|
|
||||||
# Redirect or Post if asked by authLogout
|
# Redirect or Post if asked by authLogout
|
||||||
if ( $req->urldc and $req->urldc ne $self->conf->{portal} ) {
|
|
||||||
$req->steps( [] );
|
|
||||||
return PE_REDIRECT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $req->postUrl ) {
|
if ( $req->postUrl ) {
|
||||||
$req->steps( ['autoPost'] );
|
$req->steps( ['autoPost'] );
|
||||||
return PE_OK;
|
return PE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $req->urldc and $req->urldc ne $self->conf->{portal} ) {
|
||||||
|
$req->steps( [] );
|
||||||
|
return PE_REDIRECT;
|
||||||
|
}
|
||||||
|
|
||||||
# If logout redirects to another URL, just remove next steps for the
|
# If logout redirects to another URL, just remove next steps for the
|
||||||
# request so autoRedirect will be called
|
# request so autoRedirect will be called
|
||||||
if ( $req->{urldc} and $req->{urldc} ne $self->conf->{portal} ) {
|
if ( $req->{urldc} and $req->{urldc} ne $self->conf->{portal} ) {
|
||||||
|
|
Loading…
Reference in New Issue