diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-20 16:01:29 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-20 16:01:29 +0100 |
commit | 13a6517d89c0619a938321640f331571eba0edc9 (patch) | |
tree | 015269fdca734b7224f226a3abb5f42dcca9dadb /synapse/storage/registration.py | |
parent | Move token generation to auth handler (diff) | |
download | synapse-13a6517d89c0619a938321640f331571eba0edc9.tar.xz |
s/by_token/by_access_token/g
We're about to have two kinds of token, access and refresh
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r-- | synapse/storage/registration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index bf803f2c6e..0e404afb7c 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -132,10 +132,10 @@ class RegistrationStore(SQLBaseStore): user_id ) for r in rows: - self.get_user_by_token.invalidate((r,)) + self.get_user_by_access_token.invalidate((r,)) @cached() - def get_user_by_token(self, token): + def get_user_by_access_token(self, token): """Get a user from the given access token. Args: @@ -147,7 +147,7 @@ class RegistrationStore(SQLBaseStore): StoreError if no user was found. """ return self.runInteraction( - "get_user_by_token", + "get_user_by_access_token", self._query_for_auth, token ) |