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"
|
||||
storeConfig = true
|
||||
} 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 exist\"" {
|
||||
if string(reqBody) == "\"Username or email already exists\"" {
|
||||
req, err := http.NewRequest("GET", INDEX_SERVER+"/v1/users/", nil)
|
||||
req.SetBasicAuth(authConfig.Username, authConfig.Password)
|
||||
resp, err := client.Do(req)
|
||||
|
|
Loading…
Reference in a new issue