mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-29 13:26:30 -04:00
Make quick-unlock pin-length configuration helptext more clear
This commit is contained in:
+4
-2
@@ -365,8 +365,10 @@ def whitelist_setup():
|
||||
_half_length = int(len(_gpg_password_temp) / 2)
|
||||
try:
|
||||
_short_password_length = int(curses_text(f"quick unlock pin length ({_half_length}):\n\n\n\n\n(ctrl+g/enter "
|
||||
"to confirm)\n\npin must be half the length of the gpg passphrase "
|
||||
"or less\n\ncannot be a negative number"))
|
||||
"to confirm)\n\nnote: do NOT enter your desired pin - this is simply "
|
||||
"an integer used to determine the length of the auto-generated pin"
|
||||
"\n\npin must be half the length of the gpg passphrase or less and "
|
||||
"cannot be a negative number"))
|
||||
if not 0 <= _short_password_length <= _half_length:
|
||||
_short_password_length = _half_length
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user