Open eforest opened 8 months ago
I think this is a leftover from when I implemented the policy engine. There are no good reason for this arbitrary limit
Quick heads-up here as we ran into the other side of the problem (a user with a 2-character username getting bumped by MAS, issue incoming): the spec only limits the total length of the MXID to 255 characters, so the upper bound for a username would be 255 - length of the server name - 2
.
For your information, this issue has been copied over to the Element fork of matrix-authentication-service
: https://github.com/element-hq/matrix-authentication-service/issues/2454
Why does upstream OAuth registration limit username to 14 characters? Is there any reason regarding integration with matrix-home-server?
see https://github.com/matrix-org/matrix-authentication-service/blob/main/policies/register.rego [21-23]
Best Regards