Get login to use it in password force change form (#1910)

This commit is contained in:
Clément OUDOT 2019-09-18 15:55:13 +02:00
parent bdd2fed3ae
commit ce6f6c3977

View File

@ -288,7 +288,12 @@ sub display {
else {
$skinfile = 'login';
my $login = $self->userId($req);
$login = '' if ( $login eq 'anonymous' );
if ( $login eq 'anonymous' ) {
$login = '';
}
elsif ( $req->user ) {
$login = $req->{user};
}
%templateParams = (
MAIN_LOGO => $self->conf->{portalMainLogo},
LANGS => $self->conf->{showLanguages},