mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed typo in 'username or email already exists'
This commit is contained in:
parent
5690562fc8
commit
594827d416
1 changed files with 1 additions and 2 deletions
|
@ -126,8 +126,7 @@ func Login(authConfig *AuthConfig) (string, error) {
|
||||||
status = "Account Created\n"
|
status = "Account Created\n"
|
||||||
storeConfig = true
|
storeConfig = true
|
||||||
} else if reqStatusCode == 400 {
|
} else if reqStatusCode == 400 {
|
||||||
// FIXME: This should be 'exists', not 'exist'. Need to change on the server first.
|
if string(reqBody) == "\"Username or email already exists\"" {
|
||||||
if string(reqBody) == "\"Username or email already exist\"" {
|
|
||||||
req, err := http.NewRequest("GET", INDEX_SERVER+"/v1/users/", nil)
|
req, err := http.NewRequest("GET", INDEX_SERVER+"/v1/users/", nil)
|
||||||
req.SetBasicAuth(authConfig.Username, authConfig.Password)
|
req.SetBasicAuth(authConfig.Username, authConfig.Password)
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue