From 96c5441ac652bb2e7e396381d3fb2e0964ad68da Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Wed, 11 Sep 2019 17:34:18 -0400 Subject: 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 --- diplomacy/client/connection.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'diplomacy/client/connection.py') 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 -- cgit v1.2.3