mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
fix Double Prompting Issue when Reading Secret Input
This commit is contained in:
parent
94165a0f3d
commit
cbf2771935
3 changed files with 6 additions and 9 deletions
|
@ -32,8 +32,7 @@ var verifyCMD = &cobra.Command{
|
|||
|
||||
userPassword := viper.GetString("userPassword")
|
||||
if userPassword == "" {
|
||||
fmt.Print("Enter Password:")
|
||||
pw, err := util.ReadPassword()
|
||||
pw, err := util.ReadPassword("Enter Password:")
|
||||
if err != nil {
|
||||
fmt.Println()
|
||||
return fmt.Errorf("Reading Password: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue