From 7b553fae9ff1906d70f88c5ca324d071761b6046 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Mon, 13 Sep 2021 09:22:10 +0200 Subject: [PATCH] improve interactive Password Entry --- util/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/client.go b/util/client.go index 045fa97..4166b4f 100644 --- a/util/client.go +++ b/util/client.go @@ -27,9 +27,11 @@ func GetClient(ctx context.Context) (*api.Client, error) { fmt.Print("Enter Password:") bytepw, err := term.ReadPassword(int(syscall.Stdin)) if err != nil { + fmt.Println("\n") return nil, fmt.Errorf("Reading Password: %w", err) } userPassword = string(bytepw) + fmt.Println("\n") } client, err := api.NewClient(nil, "", serverAddress, userPrivateKey, userPassword)