mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Modified /join/$identifier to support $identifier being a room ID in addition to a room alias.
This commit is contained in:
parent
f84ddc75cb
commit
dfa0cd1d90
3 changed files with 61 additions and 14 deletions
|
@ -162,6 +162,8 @@ class Auth(object):
|
|||
"""
|
||||
try:
|
||||
user_id = yield self.store.get_user_by_token(token=token)
|
||||
if not user_id:
|
||||
raise StoreError()
|
||||
defer.returnValue(self.hs.parse_userid(user_id))
|
||||
except StoreError:
|
||||
raise AuthError(403, "Unrecognised access token.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue