mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
check mx records for disposable emails
This commit is contained in:
parent
b9fa24e479
commit
383bb2e672
2 changed files with 25 additions and 3 deletions
|
@ -84,6 +84,11 @@ post '/create' do
|
|||
return {result: 'error'}.to_json
|
||||
end
|
||||
|
||||
if Site.disposable_mx_record?(@site.email)
|
||||
flash[:error] = 'Cannot use a disposable email address.'
|
||||
return {result: 'error'}.to_json
|
||||
end
|
||||
|
||||
@site.email_confirmed = true if self.class.development?
|
||||
@site.save
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue