UsernameValidator error messages weren't matching the code

This commit is contained in:
Régis Hanol
2016-02-18 23:19:14 +01:00
parent 283ff4c7f8
commit e204144a58
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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