Skip to content

Commit

Permalink
revive setting/changing pin, Nitrokey#60
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Jun 3, 2021
1 parent 39ebea5 commit e1e8972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynitrokey/cli/fido2.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def change_pin(serial):
try:
# @fixme: move this (function) into own fido2-client-class
client = nkfido2.find(serial).client
PIN(client.ctap2).change_pin(old_pin, new_pin)
client.client_pin.change_pin(old_pin, new_pin)
local_print("done - please use new pin to verify key")

except Exception as e:
Expand All @@ -466,7 +466,7 @@ def set_pin(serial):
try:
# @fixme: move this (function) into own fido2-client-class
client = nkfido2.find(serial).client
PIN(client.ctap2).set_pin(new_pin)
client.client_pin.set_pin(new_pin)
local_print("done - please use new pin to verify key")

except Exception as e:
Expand Down

0 comments on commit e1e8972

Please sign in to comment.