Finish email allow/deny list naming migration (#30530)
This commit is contained in:
parent
f6d090fdf5
commit
02df1b4e4a
11 changed files with 43 additions and 44 deletions
|
@ -100,7 +100,7 @@ class User < ApplicationRecord
|
|||
|
||||
validates :email, presence: true, email_address: true
|
||||
|
||||
validates_with BlacklistedEmailValidator, if: -> { ENV['EMAIL_DOMAIN_LISTS_APPLY_AFTER_CONFIRMATION'] == 'true' || !confirmed? }
|
||||
validates_with UserEmailValidator, if: -> { ENV['EMAIL_DOMAIN_LISTS_APPLY_AFTER_CONFIRMATION'] == 'true' || !confirmed? }
|
||||
validates_with EmailMxValidator, if: :validate_email_dns?
|
||||
validates :agreement, acceptance: { allow_nil: false, accept: [true, 'true', '1'] }, on: :create
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue