mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:55:39 -05:00
Add ScreenedUrl. Rename BlockedEmail to ScreenedEmail.
This commit is contained in:
@@ -10,7 +10,7 @@ class EmailValidator < ActiveModel::EachValidator
|
||||
record.errors.add(attribute, I18n.t(:'user.email.not_allowed'))
|
||||
end
|
||||
end
|
||||
if record.errors[attribute].blank? and BlockedEmail.should_block?(value)
|
||||
if record.errors[attribute].blank? and ScreenedEmail.should_block?(value)
|
||||
record.errors.add(attribute, I18n.t(:'user.email.blocked'))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user