mirror of https://github.com/docker/docs.git
Fix bug where sign up would fail
This commit is contained in:
parent
6d2a4a1f78
commit
438ee906ec
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Reference in New Issue