Sfoglia il codice sorgente

Don't double read from u.Pin()

Gary Belvin 5 anni fa
parent
commit
a63a1d6482
1 ha cambiato i file con 0 aggiunte e 13 eliminazioni
  1. 0 13
      cmd/step-pkcs11-init/main.go

+ 0 - 13
cmd/step-pkcs11-init/main.go

@@ -119,19 +119,6 @@ func main() {
 		fatal(err)
 	}
 
-	kmsPin := u.Pin()
-	if c.Pin == "" && kmsPin != "" {
-		c.Pin = kmsPin
-	}
-
-	if c.Pin == "" {
-		pin, err := ui.PromptPassword("What is the PKCS#11 PIN?")
-		if err != nil {
-			fatal(err)
-		}
-		c.Pin = string(pin)
-	}
-
 	k, err := kms.New(context.Background(), apiv1.Options{
 		Type: string(apiv1.PKCS11),
 		URI:  c.KMS,