From 438ee906ecb1b85b61516b6e7162095cb416a04c Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 28 May 2015 16:18:58 -0700 Subject: [PATCH] Fix bug where sign up would fail --- src/utils/HubUtil.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/HubUtil.js b/src/utils/HubUtil.js index 02ce497af8..b0668b4a7d 100644 --- a/src/utils/HubUtil.js +++ b/src/utils/HubUtil.js @@ -160,7 +160,7 @@ module.exports = { // Signs up and places a token under ~/.dockercfg and saves a jwt to localstore signup: function (username, password, email, subscribe) { - request.post('${HUB2_ENDPOINT}/users/signup/', { + request.post(`${HUB2_ENDPOINT}/users/signup/`, { form: { username, password, @@ -168,7 +168,6 @@ module.exports = { subscribe } }, (err, response, body) => { - // TODO: save username to localstorage if (response.statusCode === 204) { accountServerActions.signedup({username, verified: false}); accountServerActions.prompted({prompted: true});