mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 07:36:07 -04:00
Allow .
and ~
chars in registration tokens (#10887)
Per updates to MSC3231 in order to use the same grammar as other identifiers.
This commit is contained in:
parent
a7304adc7d
commit
90d9fc7505
3 changed files with 7 additions and 4 deletions
|
@ -113,7 +113,7 @@ class NewRegistrationTokenRestServlet(RestServlet):
|
|||
self.store = hs.get_datastore()
|
||||
self.clock = hs.get_clock()
|
||||
# A string of all the characters allowed to be in a registration_token
|
||||
self.allowed_chars = string.ascii_letters + string.digits + "-_"
|
||||
self.allowed_chars = string.ascii_letters + string.digits + "._~-"
|
||||
self.allowed_chars_set = set(self.allowed_chars)
|
||||
|
||||
async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue