Merge pull request #258 from Retroity/master

Remove Mention of Underscores in Signup Dialog
This commit is contained in:
Kyle Drake 2018-04-13 15:47:00 -07:00 committed by GitHub
commit 24e458d368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -966,7 +966,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?