users: add config option to disable verification of new accounts.

Fixes #4618.
This commit is contained in:
evazion
2020-12-27 23:55:25 -06:00
parent 9dc788c0ce
commit 805bbc8a33
2 changed files with 14 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class UserVerifier
end
def requires_verification?
return false if !Danbooru.config.new_user_verification?
return false if is_local_ip?
# we check for IP bans first to make sure we bump the IP ban hit count