cred: keep typed secret entry configuration valid
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user