cred: keep typed secret entry configuration valid

This commit is contained in:
2026-11-06 20:16:24 +00:00
parent 091f679905
commit 30dcd4c2ca
2 changed files with 55 additions and 0 deletions
+1
View File
@@ -295,6 +295,7 @@ impl Cred {
config.fields[index].needs_value = false;
config.fields[index].field_type = kind;
config.fields[index].key_type = key_type;
validate(&config)?;
tx.execute(
"INSERT INTO versions(item,created,config) VALUES(?1,unixepoch(),?2)",
params![item, previous],