|
...
|
...
|
@@ -126,8 +126,7 @@ func Login(authConfig *AuthConfig) (string, error) {
|
|
126
|
126
|
status = "Account Created\n"
|
|
127
|
127
|
storeConfig = true
|
|
128
|
128
|
} else if reqStatusCode == 400 {
|
|
129
|
|
- // FIXME: This should be 'exists', not 'exist'. Need to change on the server first.
|
|
130
|
|
- if string(reqBody) == "\"Username or email already exist\"" {
|
|
|
129
|
+ if string(reqBody) == "\"Username or email already exists\"" {
|
|
131
|
130
|
req, err := http.NewRequest("GET", INDEX_SERVER+"/v1/users/", nil)
|
|
132
|
131
|
req.SetBasicAuth(authConfig.Username, authConfig.Password)
|
|
133
|
132
|
resp, err := client.Do(req)
|