Skip to content

Commit a2e1e5c

Browse files
hiddentaoobscuren
authored andcommitted
[release/1.3.6]: cmd/utils: removed password line endings when not using liner.
(cherry picked from commit 6f30034)
1 parent 506c927 commit a2e1e5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/utils/cmd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
9191
}
9292
fmt.Print(prompt)
9393
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
94+
input = strings.TrimRight(input, "\r\n")
9495
fmt.Println()
9596
return input, err
9697
}

0 commit comments

Comments
 (0)