Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Update doc of the allowed characters for registration tokens #11093

Merged
merged 3 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11093.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the admin API documentation with an updated list of the characters allowed in registration tokens.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down