Commit 452a0c9c authored by Thomas Rosenstein's avatar Thomas Rosenstein
Browse files

Add error log in case encryption on config save fails


Signed-off-by: default avatarThomas Rosenstein <thomas.rosenstein@creamfinance.com>
parent b9bb47ca
......@@ -72,6 +72,8 @@ func (d *Database) Save(cfgs map[string]interface{}) error {
if _, ok := item.ItemType.(*metadata.PasswordType); ok {
if encryptPassword, err := encrypt.Instance().Encrypt(strValue); err == nil {
entry.Value = encryptPassword
} else {
log.Errorf("encrypt password failed, error: %v", err)
}
}
configEntries = append(configEntries, *entry)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment