diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm index cb8da3519..e124e5f56 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm @@ -142,9 +142,9 @@ sub _verify { "Update sessionInfo with new authenticationLevel: $l"); $req->sessionInfo->{authenticationLevel} = $l; - # Compute macros & groups with new authenticationLevel - $self->logger->debug("Compute macros and groups..."); - $req->steps( [ $self->p->groupsAndMacros, 'setLocalGroups' ] ); + # Compute macros & local groups again with new authenticationLevel + $self->logger->debug("Compute macros and local groups..."); + $req->steps( [ 'setMacros', 'setLocalGroups' ] ); if ( my $error = $self->p->process($req) ) { $self->logger->debug("SFA: Process returned error: $error"); $req->error($error);