mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
usernames: restrict to lowercase match
This commit is contained in:
parent
372b22aa48
commit
d11e951fe6
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
def self.valid_username?(username)
|
||||
!username.empty? && username.match(/^[a-zA-Z0-9]([a-zA-Z0-9_\-]{0,}[a-zA-Z0-9])?$/i) != nil
|
||||
!username.empty? && username.match(/^[a-z0-9]([a-z0-9_\-]{0,}[a-z0-9])?$/) != nil
|
||||
end
|
||||
|
||||
def self.disposable_email_domains_whitelist
|
||||
|
|
Loading…
Add table
Reference in a new issue