diff options
Diffstat (limited to 'diplomacy/client')
-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 |