From 562ff328f59a7d868ee25f1c5c3b5c911e89d9f2 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:02:40 +0200 Subject: [PATCH 1/3] Update doc of the allowed characters for registration tokens --- docs/usage/administration/admin_api/registration_tokens.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/administration/admin_api/registration_tokens.md b/docs/usage/administration/admin_api/registration_tokens.md index c48d060dcc38..13d5eb75e933 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. From 5c4dbc53200eabf39a0b58ac463363a03c6b3b36 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:04:40 +0200 Subject: [PATCH 2/3] newsfile --- changelog.d/11093.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/11093.doc diff --git a/changelog.d/11093.doc b/changelog.d/11093.doc new file mode 100644 index 000000000000..531543f1ab6e --- /dev/null +++ b/changelog.d/11093.doc @@ -0,0 +1 @@ +Update doc of the allowed characters for registration tokens. From bb48e6679f2fe2de2d75502f8c96c4d7922092af Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Fri, 15 Oct 2021 11:02:30 +0200 Subject: [PATCH 3/3] Update changelog.d/11093.doc --- changelog.d/11093.doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/11093.doc b/changelog.d/11093.doc index 531543f1ab6e..70fca0bdcef9 100644 --- a/changelog.d/11093.doc +++ b/changelog.d/11093.doc @@ -1 +1 @@ -Update doc of the allowed characters for registration tokens. +Update the admin API documentation with an updated list of the characters allowed in registration tokens.