brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorbett <...@git.apache.org>
Subject [GitHub] brooklyn-client pull request #42: Improve login handling.
Date Tue, 04 Apr 2017 13:41:17 GMT
Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/brooklyn-client/pull/42#discussion_r109663969
  
    --- Diff: cli/commands/login.go ---
    @@ -84,7 +100,8 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
     			error_handler.ErrorExit(err)
     		}
     		fmt.Printf("\n")
    -		cmd.network.BrooklynPass = string(bytePassword)
    +		password := string(bytePassword)
    +		cmd.network.BrooklynPass = strings.TrimSpace(password)
    --- End diff --
    
    Is trimming spaces the right thing to do? What if my password is " password1 "?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message