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
|
gotAaguid = None
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
GPIO.setup(14, GPIO.OUT)
|
GPIO.setup(14, GPIO.OUT)
|
||||||
|
GPIO.output(14, GPIO.LOW)
|
||||||
class CliInteraction(UserInteraction):
|
class CliInteraction(UserInteraction):
|
||||||
def prompt_up(self):
|
def prompt_up(self):
|
||||||
print("\nTouch your authenticator device now...\n")
|
print("\nTouch your authenticator device now...\n")
|
||||||
@ -63,6 +63,7 @@ def badCred():
|
|||||||
print("Bad credential!")
|
print("Bad credential!")
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
while True:
|
while True:
|
||||||
|
GPIO.output(14, GPIO.LOW)
|
||||||
print("Waiting for device...")
|
print("Waiting for device...")
|
||||||
while True:
|
while True:
|
||||||
dev = next(CtapHidDevice.list_devices(), None)
|
dev = next(CtapHidDevice.list_devices(), None)
|
||||||
@ -185,9 +186,9 @@ while True:
|
|||||||
|
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
GPIO.output(14, GPIO.HIGH)
|
GPIO.output(14, GPIO.HIGH)
|
||||||
time.sleep(0.2)
|
time.sleep(0.05)
|
||||||
GPIO.output(14, GPIO.LOW)
|
GPIO.output(14, GPIO.LOW)
|
||||||
time.sleep(0.2)
|
time.sleep(0.05)
|
||||||
|
|
||||||
print("CLIENT DATA:", result.client_data)
|
print("CLIENT DATA:", result.client_data)
|
||||||
print()
|
print()
|
||||||
|
Loading…
Reference in New Issue
Block a user