mastodon/spec/validators
ThibG 8d217d7231
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
2020-08-12 12:40:25 +02:00
..
blacklisted_email_validator_spec.rb
disallowed_hashtags_validator_spec.rb
email_mx_validator_spec.rb
follow_limit_validator_spec.rb
poll_validator_spec.rb
reaction_validator_spec.rb
status_length_validator_spec.rb
status_pin_validator_spec.rb
unique_username_validator_spec.rb
unreserved_username_validator_spec.rb
url_validator_spec.rb