fix: block usr_ signups
This commit is contained in:
1 parent
7cc965ce52
commit
b5a42aeb9a
1 file changed
+2
-2
@@ -18,7 +18,7 @@ from pathlib import Path
|
|||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
||||||
|
|
||||||
VERSION = "6.5"
|
VERSION = "6.6"
|
||||||
|
|
||||||
SOURCES = [
|
SOURCES = [
|
||||||
"https://raw.githubusercontent.com/mehrtat/disposable-email-domain/main/domains.txt",
|
"https://raw.githubusercontent.com/mehrtat/disposable-email-domain/main/domains.txt",
|
||||||
@@ -429,7 +429,7 @@ User.pending.find_each(batch_size: 100) do |user|
|
|||||||
EmailDomainBlock.block?(user.email)
|
EmailDomainBlock.block?(user.email)
|
||||||
|
|
||||||
blocked_username =
|
blocked_username =
|
||||||
user.account.username.to_s.match?(/\\Ausr_/i)
|
user.account.username.to_s.match?(/\Ausr_/i)
|
||||||
|
|
||||||
next unless blocked_email || blocked_username
|
next unless blocked_email || blocked_username
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user