Skip to content

Commit

Permalink
ask for pin if not provided as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Sep 9, 2020
1 parent f7e8ec6 commit 0c96ecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynitrokey/cli/fido2.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,17 @@ def set_pin(serial):


@click.command()
@click.option("--pin", help="PIN for to access key")
@click.option("--pin", help="PIN for to access key", default=None)
@click.option("-s", "--serial", help="Serial number of Nitrokey to use")
@click.option(
"--udp", is_flag=True, default=False, help="Communicate over UDP with software key"
)
def verify(pin, serial, udp):
"""Verify key is valid Nitrokey 'Start' or 'FIDO2' key."""

if not pin:
pin = AskUser("PIN required: ", repeat=0, hide_input=True).ask()

# Any longer and this needs to go in a submodule
local_print("please press the button on your Nitrokey key")

Expand Down

0 comments on commit 0c96ecf

Please sign in to comment.