Update doc of the allowed characters for registration tokens (#11093)

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
code_spécifique_watcha
Dirk Klimpel 3 years ago committed by GitHub
parent daf498e099
commit 013e0f9cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/11093.doc
  2. 2
      docs/usage/administration/admin_api/registration_tokens.md

@ -0,0 +1 @@
Update the admin API documentation with an updated list of the characters allowed in registration tokens.

@ -149,7 +149,7 @@ POST /_synapse/admin/v1/registration_tokens/new
The request body must be a JSON object and can contain the following fields:
- `token`: The registration token. A string of no more than 64 characters that
consists only of characters matched by the regex `[A-Za-z0-9-_]`.
consists only of characters matched by the regex `[A-Za-z0-9._~-]`.
Default: randomly generated.
- `uses_allowed`: The integer number of times the token can be used to complete
a registration before it becomes invalid.

Loading…
Cancel
Save