Force UTF8 decoding of loginHistory values (#1117)
This commit is contained in:
parent
b07ec51e0c
commit
b8997aa43d
|
@ -2199,6 +2199,10 @@ sub registerLogin {
|
|||
if ( $self->{loginHistoryEnabled} ) {
|
||||
my $history = $self->{sessionInfo}->{loginHistory} ||= {};
|
||||
|
||||
foreach ( @{ $history->{failedLogin} } ) {
|
||||
utf8::decode( $_->{error} );
|
||||
}
|
||||
|
||||
my $type = ( $errorCode ? "failed" : "success" ) . "Login";
|
||||
$history->{$type} ||= [];
|
||||
$self->lmLog( "Current login saved into $type", "debug" );
|
||||
|
|
Loading…
Reference in New Issue