Browse Source

check email domain for invitation

closed-social-glitch-2
欧醚 1 year ago
parent
commit
b9f3ab6530
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/validators/blacklisted_email_validator.rb

+ 1
- 1
app/validators/blacklisted_email_validator.rb View File

@ -2,7 +2,7 @@
class BlacklistedEmailValidator < ActiveModel::Validator
def validate(user)
return if user.valid_invitation? || user.email.blank?
return if user.email.blank?
user.errors.add(:email, :blocked) if blocked_email_provider?(user.email, user.sign_up_ip)
user.errors.add(:email, :taken) if blocked_canonical_email?(user.email)

Loading…
Cancel
Save