mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-26 22:09:56 -04:00
Fix one-time TOTP copy
This commit is contained in:
1 parent
591624eff6
commit
1a66a30bc1
1 file changed
+1
-1
+1
-1
@@ -32,7 +32,7 @@ func CopyArgument(targetLocation string, field int) error {
|
||||
if len(decryptedEntry) > field {
|
||||
|
||||
// ensure field is not empty
|
||||
if decryptedEntry[field] == "" {
|
||||
if field > -1 && decryptedEntry[field] == "" {
|
||||
return errors.New("field is empty")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user