]> cat aescling's git repositories - mastodon.git/commit
Improve email address validation (#14565)
authorThibG <thib@sitedethib.com>
Wed, 12 Aug 2020 10:40:25 +0000 (12:40 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 10:40:25 +0000 (12:40 +0200)
commit8d217d7231be46af552c63aff9e53d0ed5dca0f6
treecc45f0433545e57aafee21f5aa463ff5919a6bae
parent7dc4c742650ac69ec9a4459b656e172283511e4c
Improve email address validation (#14565)

* Increase DNS timeout from 1 second to 5 seconds for MX check

1 seconds is rather short when using a recursive DNS resolver which
hasn't got a cached result already available. Use 5 seconds instead,
which is the timeout value we use for outgoing HTTP queries.

* Add more precise error messages for invalid e-mail addresses
app/controllers/admin/email_domain_blocks_controller.rb
app/validators/blacklisted_email_validator.rb
app/validators/email_mx_validator.rb
config/locales/en.yml
lib/mastodon/email_domain_blocks_cli.rb
spec/validators/blacklisted_email_validator_spec.rb