mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
only validate new records for length
This commit is contained in:
parent
e56587a08c
commit
e01a74421a
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class Site < Sequel::Model
|
|||
errors.add :username, 'A valid user/site name is required.'
|
||||
end
|
||||
|
||||
if values[:username].length > 32
|
||||
if new? && values[:username].length > 32
|
||||
errors.add :username, 'User/site name cannot exceed 32 characters.'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue