Commit 6c7e797a authored by Yadd's avatar Yadd
Browse files

Avoid some warnings (#LEMONDAP-595)

parent c8fe1156
......@@ -75,14 +75,18 @@ sub remove {
#TODO: remove cache on all LL::NG instances if updateCache == 1
unless ( $session->{args}->{updateCache} == -1 ) {
unless ($session->{args}->{updateCache}
and $session->{args}->{updateCache} == -1 )
{
# Remove session from cache
my $id = $session->{data}->{_session_id};
$self->cache->remove($id) if ( $self->cache->get($id) );
}
unless ( $session->{args}->{updateCache} == 2 ) {
unless ($session->{args}->{updateCache}
and $session->{args}->{updateCache} == 2 )
{
# Remove session from backend
return $self->module->remove($session);
......
......@@ -865,9 +865,13 @@ sub run {
}
# HTTP-REDIRECT
if ( $protocolProfile eq
if (
$protocolProfile eq
Lasso::Constants::LOGIN_PROTOCOL_PROFILE_REDIRECT
or $artifact_method == $self->getHttpMethod("artifact-get") )
or ( $artifact_method
and $artifact_method ==
$self->getHttpMethod("artifact-get") )
)
{
# Redirect user to response URL
......@@ -891,7 +895,9 @@ sub run {
$req->postUrl($sso_url);
if ( $artifact_method == $self->getHttpMethod("artifact-post") )
if ( $artifact_method
and $artifact_method ==
$self->getHttpMethod("artifact-post") )
{
$req->{postFields} = { 'SAMLart' => $sso_body };
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment