diff options
author | David Baker <dave@matrix.org> | 2015-03-24 17:24:15 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-03-24 17:24:15 +0000 |
commit | c7023f21555a0adf0d8bb5040c817a8198bbf5a8 (patch) | |
tree | effa1b32f91b8b5746364fd168f91e0f7baff224 /synapse/storage/pusher.py | |
parent | Make deleting other access tokens when you change your password actually work (diff) | |
download | synapse-c7023f21555a0adf0d8bb5040c817a8198bbf5a8.tar.xz |
1) Pushers are now associated with an access token
2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it.
Diffstat (limited to 'synapse/storage/pusher.py')
-rw-r--r-- | synapse/storage/pusher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py index 000502b4ff..1ef8e06ac6 100644 --- a/synapse/storage/pusher.py +++ b/synapse/storage/pusher.py @@ -95,7 +95,7 @@ class PusherStore(SQLBaseStore): defer.returnValue(ret) @defer.inlineCallbacks - def add_pusher(self, user_name, profile_tag, kind, app_id, + def add_pusher(self, user_name, access_token, profile_tag, kind, app_id, app_display_name, device_display_name, pushkey, pushkey_ts, lang, data): try: @@ -107,6 +107,7 @@ class PusherStore(SQLBaseStore): ), dict( user_name=user_name, + access_token=access_token, kind=kind, profile_tag=profile_tag, app_display_name=app_display_name, |