From 29c7b931c9ae3fea02ada0136788e653cc87be22 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 12 Oct 2022 12:19:02 -0400 Subject: [PATCH] Fixed quick-unlock configuration looking for an integer as input --- lib/sshyp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index bb2dc0c..733e13f 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -306,9 +306,9 @@ def tweak(): # runs configuration wizard open(f"{path.expanduser('~/.config/sshyp/devices/')}{_device_id}", 'w') # quick-unlock configuration - print(f"{_divider}\nthis allows you to use a shorter version of your gpg key password and\n" - f"requires a constant connection to your sshyp server to authenticate\n") - _sshyp_data += [int(input('\nenable quick-unlock? (y/N) ').lower())] + print(f"{_divider}this allows you to use a shorter version of your gpg key password and\n" + f"requires a constant connection to your sshyp server to authenticate") + _sshyp_data += [input('\nenable quick-unlock? (y/N) ').lower()] if _sshyp_data[3] == 'y': print(f"\nquick-unlock has been enabled client-side - in order for this device to be able to read " f"entries,\nyou must first login to the sshyp server and run:\n\nsshyp whitelist setup "