From 894b8be541245e8ab6464a81339c992af0bfb6ff Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Wed, 21 Aug 2019 23:40:23 +0200 Subject: [PATCH] By pass first access (#1867) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Combination.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Combination.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Combination.pm index b025c6105..5cbb10c79 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Combination.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Combination.pm @@ -119,7 +119,7 @@ sub getDisplayType { return $self->conf->{combinationForms} if ( $self->conf->{combinationForms} ); - if ( $req->{error} > PE_OK ) { + if ( $req->{error} > PE_OK and $req->{error} != PE_FIRSTACCESS ) { $self->logger->notice('Start over combination schema'); my $stack = $self->stackSub->( $req->env ); my ( $res, $name ) = $stack->[0]->[0]->( 'getDisplayType', $req );