diff options
author | David Baker <dbkr@users.noreply.github.com> | 2016-07-20 11:03:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 11:03:33 +0100 |
commit | e967bc86e7bb90aeebb4ea2e4161d0049f1fefcc (patch) | |
tree | bdfdec01757bad35e439652a2ade1bcc78aa10da /synapse/storage | |
parent | Merge pull request #922 from matrix-org/erikj/file_api2 (diff) | |
parent | Further registration refactoring (diff) | |
download | synapse-e967bc86e7bb90aeebb4ea2e4161d0049f1fefcc.tar.xz |
Merge pull request #932 from matrix-org/rav/register_refactor
Further registration refactoring
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 26ef1cfd8a..9a92b35361 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -81,14 +81,16 @@ class RegistrationStore(SQLBaseStore): ) @defer.inlineCallbacks - def register(self, user_id, token, password_hash, + def register(self, user_id, token=None, password_hash=None, was_guest=False, make_guest=False, appservice_id=None, create_profile_with_localpart=None, admin=False): """Attempts to register an account. Args: user_id (str): The desired user ID to register. - token (str): The desired access token to use for this user. + token (str): The desired access token to use for this user. If this + is not None, the given access token is associated with the user + id. password_hash (str): Optional. The password hash for this user. was_guest (bool): Optional. Whether this is a guest account being upgraded to a non-guest account. |