mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-05 08:37:25 -04:00
Fix one-time TOTP copy
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ func CopyArgument(targetLocation string, field int) error {
|
|||||||
if len(decryptedEntry) > field {
|
if len(decryptedEntry) > field {
|
||||||
|
|
||||||
// ensure field is not empty
|
// ensure field is not empty
|
||||||
if decryptedEntry[field] == "" {
|
if field > -1 && decryptedEntry[field] == "" {
|
||||||
return errors.New("field is empty")
|
return errors.New("field is empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user