Neil Alexander 38bed30b41
Restrict username length properly (#2676)
This fixes #2674 by fixing the username check to comply with the [spec appendices](https://spec.matrix.org/v1.3/appendices/#user-identifiers):

> The length of a user ID, including the @ sigil and the domain, MUST NOT exceed 255 characters.
2022-08-26 09:56:41 +01:00
..
2022-08-05 11:12:41 +02:00
2022-03-29 14:14:35 +02:00
2022-08-05 11:12:41 +02:00
2022-03-29 14:14:35 +02:00
2022-08-05 11:12:41 +02:00
2022-08-05 11:12:41 +02:00