mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -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 {
|
||||
|
||||
// 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