mirror of
https://github.com/neocities/neocities.git
synced 2025-05-29 17:00:05 +02:00
fixes to banhammer
This commit is contained in:
parent
41b214b99f
commit
c68cbeb5a4
3 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,7 @@ class Site < Sequel::Model
|
|||
errors.add :over_capacity, 'We are currently at capacity, and cannot create your home page. We will fix this shortly. Please come back later and try again, our apologies.'
|
||||
end
|
||||
|
||||
if values[:username].nil? || values[:username].empty? || values[:username].match(BAD_USERNAME_REGEX) # || USERNAME_SHITLIST.include?(values[:username])
|
||||
if new? && (values[:username].nil? || values[:username].empty? || values[:username].match(BAD_USERNAME_REGEX)) # || USERNAME_SHITLIST.include?(values[:username])
|
||||
errors.add :username, 'A valid username is required.'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue