FIX: Minimum username length should be validated (#31332)

`@min_length_violation` was not defined and that made the range of
values error message to never be displayed.
This commit is contained in:
Bianca Nenciu
2025-02-13 21:05:31 +02:00
committed by GitHub
parent 5f00ae2ca9
commit 87a1d161c1
3 changed files with 64 additions and 21 deletions

View File

@ -18,7 +18,7 @@ class MinUsernameLengthValidator
end
def error_message
if @min_length_violation
if @min_range_violation
I18n.t(
"site_settings.errors.invalid_integer_min_max",
min: MIN_USERNAME_LENGTH_RANGE.begin,