diff options
author | David Baker <dave@matrix.org> | 2016-01-06 11:38:09 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-06 11:38:09 +0000 |
commit | c79f221192044203b9d32cfbd416a7fefeb34cd5 (patch) | |
tree | 4465211af0ca7add866429dcb224017bb5d9962c /synapse/handlers/register.py | |
parent | Merge remote-tracking branch 'origin/develop' into store_event_actions (diff) | |
download | synapse-c79f221192044203b9d32cfbd416a7fefeb34cd5.tar.xz |
Add is_guest flag to users db to track whether a user is a guest user or not. Use this so we can run _filter_events_for_client when calculating event_push_actions.
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 6f111ff63e..1799a668c6 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -84,7 +84,8 @@ class RegistrationHandler(BaseHandler): localpart=None, password=None, generate_token=True, - guest_access_token=None + guest_access_token=None, + make_guest=False ): """Registers a new client on the server. @@ -118,6 +119,7 @@ class RegistrationHandler(BaseHandler): token=token, password_hash=password_hash, was_guest=guest_access_token is not None, + make_guest=make_guest ) yield registered_user(self.distributor, user) |