Remove old unused code in example.

This commit is contained in:
Dain Nilsson 2022-09-12 14:37:29 +02:00
parent cd9e6cbd59
commit 27cd3dda54
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
1 changed files with 0 additions and 4 deletions

View File

@ -104,7 +104,6 @@ else:
dev = next(CtapHidDevice.list_devices(), None)
if dev is not None:
print("Use USB HID channel.")
use_prompt = True
else:
try:
from fido2.pcsc import CtapPcscDevice
@ -141,9 +140,6 @@ create_options, state = server.register_begin(
)
# Create a credential
if use_prompt:
print("\nTouch your authenticator device now...\n")
result = client.make_credential(create_options["publicKey"])
# Complete registration