Don't cache access tokens

This commit is contained in:
Travis Ralston 2019-07-03 14:50:54 -06:00
parent 9772ceac71
commit 3c9c39df6c

View file

@ -82,7 +82,6 @@ class RegistrationWorkerStore(SQLBaseStore):
is_trial = (now - info["creation_ts"] * 1000) < trial_duration_ms is_trial = (now - info["creation_ts"] * 1000) < trial_duration_ms
defer.returnValue(is_trial) defer.returnValue(is_trial)
@cached()
def get_user_by_access_token(self, token): def get_user_by_access_token(self, token):
"""Get a user from the given access token. """Get a user from the given access token.