From 3d90453b09ec328c42f728b989563c079d4b9ad0 Mon Sep 17 00:00:00 2001 From: snipeTR <31975916+snipeTR@users.noreply.github.com> Date: Tue, 5 Jul 2022 19:00:54 +0300 Subject: [PATCH] line 711 to show how many attempts are left. sample [ 3 / 2 ]Enter keyring passphrase: --- crypto/keyring/keyring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index 5434a27eed62..fe41826cdfae 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -708,7 +708,7 @@ func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) { } buf := bufio.NewReader(buf) - pass, err := input.GetPassword("Enter keyring passphrase:", buf) + pass, err := input.GetPassword("[", maxPassphraseEntryAttempts ,"/", failureCounter ,"]Enter keyring passphrase:", buf) if err != nil { // NOTE: LGTM.io reports a false positive alert that states we are printing the password, // but we only log the error.