diff options
author | Philip Paquette <pcpaquette@gmail.com> | 2019-09-11 17:34:18 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-09-14 18:18:53 -0400 |
commit | 96c5441ac652bb2e7e396381d3fb2e0964ad68da (patch) | |
tree | 29a582fd80553b47ea25d25908f2b624ae5c54c8 /diplomacy/client/connection.py | |
parent | 57c9c33ae756cc17af223f6bc671191684ee9c9b (diff) |
channel.authenticate() - Deprecated argument 'create_user'
- User is now created by default if it doesn't exist on the server
- Unless the server prevents new registrations
Diffstat (limited to 'diplomacy/client/connection.py')
-rw-r--r-- | diplomacy/client/connection.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/diplomacy/client/connection.py b/diplomacy/client/connection.py index f81d5b6..759a0c0 100644 --- a/diplomacy/client/connection.py +++ b/diplomacy/client/connection.py @@ -130,19 +130,18 @@ class Connection: # =================== @gen.coroutine - def authenticate(self, username, password, create_user=False): + def authenticate(self, username, password): """ Send a :class:`.SignIn` request. + User will be created on the server automatically if it doesn't exist. :param username: username :param password: password - :param create_user: boolean indicating if you want to create a user or login to an existing user. :return: a :class:`.Channel` object representing the authentication. :type username: str :type password: str - :type create_user: bool :rtype: diplomacy.client.channel.Channel """ - request = requests.SignIn(username=username, password=password, create_user=create_user) + request = requests.SignIn(username=username, password=password) return (yield self.send(request)) @gen.coroutine |