]> cat aescling's git repositories - mastodon.git/commit
Bypass MX validation for explicitly allowed domains (#15930)
authorClaire <claire.github-309c@sitedethib.com>
Fri, 19 Mar 2021 22:48:47 +0000 (23:48 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 22:48:47 +0000 (23:48 +0100)
commit051efed5edd544b4f88c63a1038274ae2db30038
tree6921fb5734d0faaeb7b62f2267a54951859a879f
parentd023eefbcc1e6c2221a53484e58e61ac12eaa1d4
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
app/validators/email_mx_validator.rb
spec/models/user_spec.rb
spec/validators/email_mx_validator_spec.rb