users: require email verification for signups from proxies.

Require users who signup using proxies to verify their email addresses
before they can perform any edits. For verification purposes, the email
must be a nondisposable address from a whitelist of trusted email
providers.
This commit is contained in:
evazion
2020-03-24 02:18:37 -05:00
parent 5faa323729
commit b7bd6c8fdd
10 changed files with 83 additions and 2 deletions

View File

@@ -519,6 +519,13 @@ module Danbooru
nil
end
# A list of email domains that are used for account verification purposes.
# If a user signs up from a proxy they will need to verify their account
# using an email address from one of the domains on this list.
def email_domain_verification_list
# ["gmail.com", "outlook.com", "yahoo.com"]
end
# API key for Google Maps. Used for embedding maps on IP address lookup pages.
# Generate at https://console.developers.google.com/apis/credentials
def google_maps_api_key