mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 06:55:03 -05:00
UsernameValidator error messages weren't matching the code
This commit is contained in:
@@ -71,7 +71,7 @@ class UsernameValidator
|
||||
def username_first_char_valid?
|
||||
return unless errors.empty?
|
||||
if username[0] =~ /\W/
|
||||
self.errors << I18n.t(:'user.username.must_begin_with_alphanumeric')
|
||||
self.errors << I18n.t(:'user.username.must_begin_with_alphanumeric_or_underscore')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user