Fix autoPost detection (#2799)

This commit is contained in:
Maxime Besson 2022-09-20 18:41:40 +02:00
parent fddab8f0f2
commit fe9980328b
1 changed files with 5 additions and 5 deletions

View File

@ -303,16 +303,16 @@ sub deleteSession {
$req->userData( {} );
# 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 ) {
$req->steps( ['autoPost'] );
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
# request so autoRedirect will be called
if ( $req->{urldc} and $req->{urldc} ne $self->conf->{portal} ) {