Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit ac08b03

Browse files
jpcoenenflorisvdg
andauthored
Deduplicate passphrase prompt
Co-authored-by: Floris van der Grinten <floris@grinten.com>
1 parent 702e2f9 commit ac08b03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internals/secrethub/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (cmd *InitCommand) Run() error {
143143
var passphrase string
144144
if !cmd.credentialStore.IsPassphraseSet() && !cmd.force {
145145
var err error
146-
passphrase, err = ui.AskPassphrase(cmd.io, "Please enter a passphrase to protect your local credential (leave empty for no passphrase): ", "Enter the same passphrase again: ", 3)
146+
passphrase, err = askCredentialPassphrase(cmd.io)
147147
if err != nil {
148148
return err
149149
}

0 commit comments

Comments
 (0)