diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index 3cdc81829..6bf32d41f 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -331,7 +331,7 @@ sub autoRedirect { # If $id is set to undef or if $args{force} is true, return a new session. sub getApacheSession { my ( $self, $id, %args ) = @_; - $args{kind} ||= "SSO"; + $args{kind} //= "SSO"; if ($id) { $self->logger->debug("Try to get $args{kind} session $id"); } diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SOAPServer.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SOAPServer.pm index cab3740c8..e842c9292 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SOAPServer.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SOAPServer.pm @@ -272,7 +272,7 @@ sub getAttributes { my ( $self, $req, $id ) = @_; die 'id is required' unless ($id); - my $session = $self->p->getApacheSession($id); + my $session = $self->p->getApacheSession( $id, kind => '' ); my @tmp = (); unless ($session) {