Restore _httpSession (#1746)
This commit is contained in:
parent
8f140bd235
commit
aeead582d8
|
@ -55,6 +55,7 @@ sub init {
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
my ( $self, $req ) = @_;
|
my ( $self, $req ) = @_;
|
||||||
|
my $savedHttpSession = $req->{sessionInfo}->{_httpSession} //= '';
|
||||||
my $spoofId = $req->param('spoofId') || $req->{user};
|
my $spoofId = $req->param('spoofId') || $req->{user};
|
||||||
$self->logger->debug("No impersonation required") if ( $spoofId eq $req->{user} );
|
$self->logger->debug("No impersonation required") if ( $spoofId eq $req->{user} );
|
||||||
my $statut = PE_OK;
|
my $statut = PE_OK;
|
||||||
|
@ -139,6 +140,8 @@ sub run {
|
||||||
$self->p->updateSession( $req, $spoofSession );
|
$self->p->updateSession( $req, $spoofSession );
|
||||||
$req->steps( [ $self->p->validSession, @{ $self->p->endAuth } ] );
|
$req->steps( [ $self->p->validSession, @{ $self->p->endAuth } ] );
|
||||||
|
|
||||||
|
# Restore _httpSession for double Cookies
|
||||||
|
$req->{sessionInfo}->{_httpSession} = $savedHttpSession if $savedHttpSession;
|
||||||
return $statut;
|
return $statut;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user