|
@@ -344,6 +344,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
|
if username == "" {
|
|
if username == "" {
|
|
promptDefault("Username", authconfig.Username)
|
|
promptDefault("Username", authconfig.Username)
|
|
username = readInput(cli.in, cli.out)
|
|
username = readInput(cli.in, cli.out)
|
|
|
|
+ username = strings.Trim(username, " ")
|
|
if username == "" {
|
|
if username == "" {
|
|
username = authconfig.Username
|
|
username = authconfig.Username
|
|
}
|
|
}
|