lockbox

password manager
Log | Files | Refs | README | LICENSE

commit a20d15801628724d964c040afb63cdb8e2234623
parent 9bdd4f9f21ea286b5fbf49c71f2cb8d3b7be7e90
Author: Sean Enck <sean@ttypty.com>
Date:   Wed,  4 Feb 2026 16:58:21 -0500

this should use the known lower fields

Diffstat:
Minternal/app/insert.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/app/insert.go b/internal/app/insert.go @@ -21,8 +21,8 @@ func Insert(cmd UserInputOptions) error { } entry := args[0] base := kdbx.Base(entry) - if !slices.ContainsFunc(kdbx.AllFields, func(v string) bool { - return base == strings.ToLower(v) + if !slices.ContainsFunc(kdbx.AllFieldsLower, func(v string) bool { + return base == v }) { return fmt.Errorf("'%s' is not an allowed field name", base) }