changes
This commit is contained in:
parent
23b09a791a
commit
3b8fe12655
7
main.py
7
main.py
@ -47,7 +47,7 @@ from fido2.ctap2 import Ctap2
|
||||
gotAaguid = None
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(14, GPIO.OUT)
|
||||
|
||||
GPIO.output(14, GPIO.LOW)
|
||||
class CliInteraction(UserInteraction):
|
||||
def prompt_up(self):
|
||||
print("\nTouch your authenticator device now...\n")
|
||||
@ -63,6 +63,7 @@ def badCred():
|
||||
print("Bad credential!")
|
||||
time.sleep(3)
|
||||
while True:
|
||||
GPIO.output(14, GPIO.LOW)
|
||||
print("Waiting for device...")
|
||||
while True:
|
||||
dev = next(CtapHidDevice.list_devices(), None)
|
||||
@ -185,9 +186,9 @@ while True:
|
||||
|
||||
for i in range(10):
|
||||
GPIO.output(14, GPIO.HIGH)
|
||||
time.sleep(0.2)
|
||||
time.sleep(0.05)
|
||||
GPIO.output(14, GPIO.LOW)
|
||||
time.sleep(0.2)
|
||||
time.sleep(0.05)
|
||||
|
||||
print("CLIENT DATA:", result.client_data)
|
||||
print()
|
||||
|
Loading…
Reference in New Issue
Block a user