mirror of https://github.com/docker/docs.git
fix auth in case you change your password on index.io
This commit is contained in:
parent
452128f0da
commit
9cc72ff1a9
|
@ -296,7 +296,6 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||||
if username == "" {
|
if username == "" {
|
||||||
username = cli.authConfig.Username
|
username = cli.authConfig.Username
|
||||||
}
|
}
|
||||||
if username != cli.authConfig.Username {
|
|
||||||
fmt.Print("Password: ")
|
fmt.Print("Password: ")
|
||||||
password = readString(os.Stdin, os.Stdout)
|
password = readString(os.Stdin, os.Stdout)
|
||||||
|
|
||||||
|
@ -309,9 +308,6 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||||
if email == "" {
|
if email == "" {
|
||||||
email = cli.authConfig.Email
|
email = cli.authConfig.Email
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
email = cli.authConfig.Email
|
|
||||||
}
|
|
||||||
term.RestoreTerminal(oldState)
|
term.RestoreTerminal(oldState)
|
||||||
|
|
||||||
cli.authConfig.Username = username
|
cli.authConfig.Username = username
|
||||||
|
|
Loading…
Reference in New Issue