mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-28 05:32:49 +01:00
trimspace on piped passwords
This commit is contained in:
parent
6f2b610736
commit
6667585605
@ -35,7 +35,7 @@ func getPassword() string {
|
||||
}
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
text, _ := reader.ReadString('\n')
|
||||
return text
|
||||
return strings.TrimSpace(text)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Loading…
Reference in New Issue
Block a user