commit 39268d0efb6319e74a00fbe4b2197ca12c31b63f
parent 1ebfcf084f07b10ba31f44b4c5fd5362fac857cc
Author: Sean Enck <sean@ttypty.com>
Date: Sat, 21 Jan 2023 08:35:45 -0500
bug in how totp tokens are stored as non-attributes
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/vers.txt b/cmd/vers.txt
@@ -1 +1 @@
-v23.01.00
-\ No newline at end of file
+v23.01.01
+\ No newline at end of file
diff --git a/internal/backend/actions.go b/internal/backend/actions.go
@@ -274,8 +274,8 @@ func (t *Transaction) Move(src QueryEntity, dst string) error {
if multi {
return errors.New("totp tokens can NOT be multi-line")
}
- v = inputs.FormatTOTP(v)
- e.Values = append(e.Values, protectedValue("otp", v))
+ otp := inputs.FormatTOTP(v)
+ e.Values = append(e.Values, protectedValue("otp", otp))
}
e.Values = append(e.Values, protectedValue(field, v))
e.Values = append(e.Values, value(modTimeKey, modTime.Format(time.RFC3339)))
diff --git a/scripts/tests.expected.log b/scripts/tests.expected.log
@@ -44,7 +44,7 @@ keys2/k/three:
test/k/totp:
modtime: XXXX-XX-XX
- hash: b6c44d5d8a75071d8e8a39df231b0b98584d1d42982b5cf230e44f94d9c48e2983e78955a54b70c0acb0428d6db7205101e332f950ffb6b6d643aa37287c6aa5
+ hash: 7ef183065ba70aaa417b87ea0a96b7e550a938a52440c640a07537f7794d8a89e50078eca6a7cbcfacabd97a2db06d11e82ddf7556ca909c4df9fc0d006013b1
delete entry? (y/N)
delete entry? (y/N)