Explorar o código

Fix login

Right now it returns:
```
FATA[0001] json: Unmarshal(non-pointer types.AuthResponse)
```

Signed-off-by: Doug Davis <dug@us.ibm.com>
Doug Davis %!s(int64=10) %!d(string=hai) anos
pai
achega
0d65069a17
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/client/login.go

+ 1 - 1
api/client/login.go

@@ -123,7 +123,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
 	}
 
 	var response types.AuthResponse
-	if err := json.NewDecoder(stream).Decode(response); err != nil {
+	if err := json.NewDecoder(stream).Decode(&response); err != nil {
 		cli.configFile, _ = registry.LoadConfig(homedir.Get())
 		return err
 	}