mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
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:
parent
e476d649ea
commit
209f032d0b
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ class Site < Sequel::Model
|
||||||
super
|
super
|
||||||
|
|
||||||
if !self.class.valid_username?(values[:username])
|
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
|
end
|
||||||
|
|
||||||
if !values[:username].blank?
|
if !values[:username].blank?
|
||||||
|
|
Loading…
Add table
Reference in a new issue