From 8aa3e651374b3149e6d83d6ecb00f92b31b6eeec Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Wed, 15 Sep 2021 14:00:31 +0200 Subject: [PATCH] Remember login across authentication attempts (#2616) --- .../lib/Lemonldap/NG/Portal/Main/Display.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm index d13573855..3f6cb697d 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm @@ -364,13 +364,7 @@ sub display { # 3 Authentication has been refused OR first access else { $skinfile = 'login'; - my $login = $self->userId($req); - if ( $login eq 'anonymous' ) { - $login = ''; - } - elsif ( $req->user ) { - $login = $req->{user}; - } + my $login = $req->user; %templateParams = ( MAIN_LOGO => $self->conf->{portalMainLogo}, LANGS => $self->conf->{showLanguages},