fix Double Prompting Issue when Reading Secret Input

This commit is contained in:
Samuel Lorch 2022-12-30 11:12:52 +01:00
parent 94165a0f3d
commit cbf2771935
3 changed files with 6 additions and 9 deletions

View file

@ -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)