1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #11258 from HuKeping/cmdlogin

Remove leading spaces of username when login
This commit is contained in:
Tibor Vass 2015-03-09 19:02:24 -04:00
commit aa19a78d3d

View file

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