mirror of
https://github.com/LedgerHQ/openpgp-card-app
synced 2024-11-09 07:10:30 +00:00
Fix gpgpcli.py --{adm,user}-pin
When pinpad is not set, then both admin/user PINs must be set on the command-line. However this condition was not properly checked, meaning it was impossible to use both options at the same time.
This commit is contained in:
parent
f7fff68d32
commit
6970362efa
@ -67,7 +67,7 @@ if args.backup and args.restore:
|
||||
|
||||
|
||||
if not args.pinpad:
|
||||
if not args.adm_pin is None or not args.user_pin:
|
||||
if not args.adm_pin or not args.user_pin:
|
||||
error('If pinpad is not use, userpin and admpin must be provided')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user