mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Respect the user-specifed quick-unlock passphrase length
Former-commit-id: 5ef20818df71d226d14bf97d99d8646b09a0a7b6 [formerly 70ee2c6d04]
Former-commit-id: 65b4c531f2e84aa5198e1c77a1d0624482cd70e0
This commit is contained in:
+1
-1
@@ -526,7 +526,7 @@ def whitelist_setup(): # takes input from the user to set up quick-unlock passw
|
|||||||
f"({int(_half_length)}): "))
|
f"({int(_half_length)}): "))
|
||||||
_i, _quick_unlock_password, _quick_unlock_password_excluded = 0, '', ''
|
_i, _quick_unlock_password, _quick_unlock_password_excluded = 0, '', ''
|
||||||
for _char in _gpg_password_temp:
|
for _char in _gpg_password_temp:
|
||||||
if _i % 2 == 1 and _i < _short_password_length:
|
if _i % 2 == 1 and _i < _short_password_length*2:
|
||||||
_quick_unlock_password += _char
|
_quick_unlock_password += _char
|
||||||
else:
|
else:
|
||||||
_quick_unlock_password_excluded += _char
|
_quick_unlock_password_excluded += _char
|
||||||
|
|||||||
Reference in New Issue
Block a user