diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-11-19 17:21:03 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-11-19 17:21:03 +0000 |
commit | dd11bf8a795ed9c20ce694cd0cd12cf47c00fd25 (patch) | |
tree | f1647aaf46015d8da38d7ed1c6192cc835f13192 /synapse/handlers/auth.py | |
parent | Put back the 'state.events' subobject (diff) | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-dd11bf8a795ed9c20ce694cd0cd12cf47c00fd25.tar.xz |
Merge branch 'develop' into rav/flatten_sync_response
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index be157e2bb7..e64b67cdfd 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -407,7 +407,7 @@ class AuthHandler(BaseHandler): try: macaroon = pymacaroons.Macaroon.deserialize(login_token) auth_api = self.hs.get_auth() - auth_api.validate_macaroon(macaroon, "login", [auth_api.verify_expiry]) + auth_api.validate_macaroon(macaroon, "login", True) return self._get_user_from_macaroon(macaroon) except (pymacaroons.exceptions.MacaroonException, TypeError, ValueError): raise AuthError(401, "Invalid token", errcode=Codes.UNKNOWN_TOKEN) |