Removed Mention of Underscores in Signup Dialog

Underscores are not allowed in usernames, so they shouldn't be mentioned as allowed.
This commit is contained in:
Retroity 2017-10-18 10:22:35 -05:00 committed by GitHub
parent e476d649ea
commit 209f032d0b

View file

@ -943,7 +943,7 @@ class Site < Sequel::Model
super
if !self.class.valid_username?(values[:username])
errors.add :username, 'Usernames can only contain letters, numbers, underscores and hyphens.'
errors.add :username, 'Usernames can only contain letters, numbers, and hyphens.'
end
if !values[:username].blank?