Skip to content

Commit

Permalink
Issue #2977: Changed regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter authored and svenoe committed Sep 30, 2024
1 parent d4eac60 commit 7e4f746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Output/HTML/Preferences/Password.pm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sub Run {
}

# check min 2 char password
if ( $Config->{PasswordMin2Characters} && $Pw !~ /(.*\w.*){2,}/ ) {
if ( $Config->{PasswordMin2Characters} && $Pw !~ /\w.*\w/ ) {
$Self->{Error} = $LanguageObject->Translate('Can\'t update password, it must contain at least 2 letter characters!');
return;
}
Expand Down

0 comments on commit 7e4f746

Please sign in to comment.