mirror of
https://github.com/token2/fido2-manage.git
synced 2026-04-09 10:45:39 +00:00
Add get_pin function to prompt for PIN code
This commit is contained in:
7
gui1.py
7
gui1.py
@@ -108,6 +108,11 @@ def on_device_selected(event):
|
||||
else:
|
||||
messagebox.showinfo("Device Selected", "No digit found in the selected device")
|
||||
|
||||
def get_pin():
|
||||
global PIN
|
||||
PIN = simpledialog.askstring("PIN Code", "Enter your PIN code:", show="*")
|
||||
return PIN
|
||||
|
||||
def on_passkeys_button_click():
|
||||
global PIN
|
||||
selected_device = device_var.get()
|
||||
@@ -119,7 +124,7 @@ def on_passkeys_button_click():
|
||||
device_digit = match.group(1)
|
||||
|
||||
if PIN is None:
|
||||
set_pin()
|
||||
get_pin()
|
||||
if PIN is None:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user