From 96c5441ac652bb2e7e396381d3fb2e0964ad68da Mon Sep 17 00:00:00 2001
From: Philip Paquette <pcpaquette@gmail.com>
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/web/src/gui/pages/content_connection.jsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'diplomacy/web/src/gui/pages/content_connection.jsx')

diff --git a/diplomacy/web/src/gui/pages/content_connection.jsx b/diplomacy/web/src/gui/pages/content_connection.jsx
index 01b0650..a7a151f 100644
--- a/diplomacy/web/src/gui/pages/content_connection.jsx
+++ b/diplomacy/web/src/gui/pages/content_connection.jsx
@@ -46,11 +46,7 @@ export class ContentConnection extends React.Component {
                 page.connection = this.connection;
                 this.connection = null;
                 page.success(`Successfully connected to server ${data.username}:${data.port}`);
-                page.connection.authenticate(data.username, data.password, false)
-                    .catch((error) => {
-                        page.error(`Unable to sign in, trying to create an account, error: ${error}`);
-                        return page.connection.authenticate(data.username, data.password, true);
-                    })
+                page.connection.authenticate(data.username, data.password)
                     .then((channel) => {
                         page.channel = channel;
                         return channel.getAvailableMaps();
-- 
cgit v1.2.3

