Skip to content

Commit

Permalink
Merge pull request #1 from nishanths/no-trim
Browse files Browse the repository at this point in the history
do not trim whitespace in password input
  • Loading branch information
sam701 authored Jan 2, 2017
2 parents c099ebb + f6ee71b commit 99d8e60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"log"
"os"
"strings"

"github.com/howeyc/gopass"
"github.com/mdp/qrterminal"
Expand All @@ -18,7 +17,5 @@ func main() {
if err != nil {
log.Fatalln("ERROR", err)
}
pass := strings.TrimSpace(string(passb))

qrterminal.Generate(pass, qr.H, os.Stdout)
qrterminal.Generate(string(passb), qr.H, os.Stdout)
}

0 comments on commit 99d8e60

Please sign in to comment.