mastodon/app/validators
Rey Tucker 94f5c714f1 Don't delete periods when validating username uniqueness (#11392) (#11400)
* Check to make sure usernames with '.' cannot be created

* Add test for instance actor account name conflicts

This makes sure that migration 20190715164535_add_instance_actor
won't fail if there's already an account that is named the same
as the domain (minus the .)

* Put the test into the correct context...

* Add another test to split this into two validations

* Don't delete periods when validating username uniqueness (#11392)

The 20190715164535_add_instance_actor migration fails if there's
already a username similar to the domain name, e.g. if you are
'vulpine.club' and have a user named 'vulpineclub', validation
fails.

Upon further review, usernames with periods are dropped by the
regular expression in the Account class, so we don't need to
worry about it here.

Fixes #11392
2019-07-24 14:19:17 +02:00
..
blacklisted_email_validator.rb Fix “invited by” not showing up for invited accounts in admin interface (#10791) 2019-05-19 21:40:36 +02:00
disallowed_hashtags_validator.rb
email_mx_validator.rb Add support for IPv6 only MXes in Email validation (#10009) 2019-02-12 14:48:04 +01:00
existing_username_validator.rb Fix admin validation being too strict about usernames (#10449) 2019-04-06 17:53:17 +02:00
follow_limit_validator.rb
html_validator.rb Change HTML validator to ignore all errors except unmatched tags (#10534) 2019-04-10 03:34:16 +02:00
note_length_validator.rb Change note length validation to ignore mention domains and URLs (#9717) 2019-01-05 07:16:46 +01:00
poll_validator.rb Allow set the voting period to just 5 minutes (#10525) 2019-04-09 17:02:12 +02:00
status_length_validator.rb
status_pin_validator.rb
unique_username_validator.rb Don't delete periods when validating username uniqueness (#11392) (#11400) 2019-07-24 14:19:17 +02:00
unreserved_username_validator.rb
url_validator.rb Change note length validation to ignore mention domains and URLs (#9717) 2019-01-05 07:16:46 +01:00
vote_validator.rb Fix vote validation for polls with multiple choices (#10138) 2019-03-03 23:41:30 +01:00