summary refs log tree commit diff
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2021-10-15 11:56:39 +0200
committerGitHub <noreply@github.com>2021-10-15 09:56:39 +0000
commit013e0f9caeac4ff45a5653cb56ac66cfd5ab482a (patch)
treecae837090df7a92e8e14acc1aff516e080c9e625
parentFix 500 error on `/messages` when we accumulate more than 5 backward extremit... (diff)
downloadsynapse-013e0f9caeac4ff45a5653cb56ac66cfd5ab482a.tar.xz
Update doc of the allowed characters for registration tokens (#11093)
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
-rw-r--r--changelog.d/11093.doc1
-rw-r--r--docs/usage/administration/admin_api/registration_tokens.md2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/11093.doc b/changelog.d/11093.doc
new file mode 100644

index 0000000000..70fca0bdce --- /dev/null +++ b/changelog.d/11093.doc
@@ -0,0 +1 @@ +Update the admin API documentation with an updated list of the characters allowed in registration tokens. diff --git a/docs/usage/administration/admin_api/registration_tokens.md b/docs/usage/administration/admin_api/registration_tokens.md
index c48d060dcc..13d5eb75e9 100644 --- a/docs/usage/administration/admin_api/registration_tokens.md +++ b/docs/usage/administration/admin_api/registration_tokens.md
@@ -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.