Skip to content

Commit

Permalink
Merge pull request moby#11258 from HuKeping/cmdlogin
Browse files Browse the repository at this point in the history
Remove leading spaces of username when login
  • Loading branch information
tiborvass committed Mar 9, 2015
2 parents 7c4951d + 2687502 commit aa19a78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/client/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit aa19a78

Please sign in to comment.