diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-27 14:13:06 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-27 14:13:06 +0100 |
commit | 47519cd8c27c343405431c206660ba74fdea52f6 (patch) | |
tree | 77b7a55778c42e256b99577226a6172f719e8416 /synapse/api | |
parent | Implement presence event source. Change the way the notifier indexes listeners (diff) | |
parent | fix joining rooms on webclient (diff) | |
download | synapse-47519cd8c27c343405431c206660ba74fdea52f6.tar.xz |
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
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 15407df14a..886e132e10 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -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.", |