mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 10:06:00 +02:00
merge domains
This commit is contained in:
commit
7084cde42f
10 changed files with 1060 additions and 1 deletions
|
@ -843,6 +843,10 @@ class Site < Sequel::Model
|
|||
errors.add :email, 'An email address is required.'
|
||||
end
|
||||
|
||||
if parent? && values[:email] =~ /@neocities.org/
|
||||
errors.add :email, 'Cannot use this email address.'
|
||||
end
|
||||
|
||||
# Check for existing email if new or changing email.
|
||||
if new? || @original_email
|
||||
email_check = self.class.select(:id).filter(email: values[:email])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue