mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 05:36:02 -04:00
Merge branch 'develop' of github.com:matrix-org/synapse into stream_refactor
Conflicts: synapse/handlers/events.py synapse/rest/events.py synapse/rest/room.py
This commit is contained in:
commit
47519cd8c2
23 changed files with 778 additions and 755 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