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:
commit
aa19a78d3d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue