Avoid little warning (#595)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 7 years ago
parent 27bacd63e0
commit 0849df9da0
  1. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OpenIDConnect.pm

@ -1068,7 +1068,7 @@ sub getEndPointAccessToken {
my $access_token;
my $authorization = $req->authorization;
if ( $authorization =~ /^Bearer (\w+)/i ) {
if ( $authorization and $authorization =~ /^Bearer (\w+)/i ) {
$self->logger->debug("Bearer access token");
$access_token = $1;
}

Loading…
Cancel
Save