Ver Fonte

minimize diff

Gary Belvin há 5 anos atrás
pai
commit
1fb4406801
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cmd/step-pkcs11-init/main.go

+ 1 - 1
cmd/step-pkcs11-init/main.go

@@ -119,7 +119,7 @@ func main() {
 		fatal(err)
 	}
 
-	if c.Pin == "" && u.Get("pin-value") == "" && u.Get("pin-source") == "" {
+	if u.Get("pin-value") == "" && u.Get("pin-source") == "" && c.Pin == "" {
 		pin, err := ui.PromptPassword("What is the PKCS#11 PIN?")
 		if err != nil {
 			fatal(err)