mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-08-22 01:10:39 +00:00
Exposes a new query telling whether a given username is available for registration, and if not, why: already taken, or rejected by the registration policy. A username reserved on the homeserver side is deliberately reported as taken, mirroring the ambiguity of the registration form, which doesn't tell the two apart either. Because this effectively is a username-existence oracle, the query is rate-limited per requester, configurable through the new `rate_limiting.username_availability` option.