Bypass MX validation for explicitly allowed domains (#15930)
* Bypass MX validation for explicitly allowed domains This spares some lookups and prevent issues in some edge cases with local domains. * Add tests * Fix test
This commit is contained in:
parent
d023eefbcc
commit
051efed5ed
3 changed files with 26 additions and 2 deletions
|
@ -206,7 +206,7 @@ RSpec.describe User, type: :model do
|
|||
|
||||
describe 'whitelist' do
|
||||
around(:each) do |example|
|
||||
old_whitelist = Rails.configuration.x.email_whitelist
|
||||
old_whitelist = Rails.configuration.x.email_domains_whitelist
|
||||
|
||||
Rails.configuration.x.email_domains_whitelist = 'mastodon.space'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue