mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-27 06: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 {
|
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