Login is not remembered when password is incorrect
Concerned version
Version: 2.0.13
Summary
LLNG 1.9
LLNG 2.0+
Logs
my $login = $self->userId($req);
if ( $login eq 'anonymous' ) {
$login = '';
}
elsif ( $req->user ) {
$login = $req->{user};
}
userId
returns anonymous, and because of that, $login
is set to an empty string
Possible fixes
I would replace this entire block with
$login = $req->user
but I'm worried about interactions with "forced password change" which are the reason why this complicated block of code is here in the first place. Any suggestions?