initial contact form for domain registration

This commit is contained in:
Kyle Drake 2016-02-19 19:37:27 -08:00
parent f026d9d5fe
commit 47c0e52d93
7 changed files with 1051 additions and 1 deletions

View file

@ -823,6 +823,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])