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/web/src/gui/pages/content_connection.jsx | |
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/web/src/gui/pages/content_connection.jsx')
-rw-r--r-- | diplomacy/web/src/gui/pages/content_connection.jsx | 6 |
1 files changed, 1 insertions, 5 deletions
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(); |