Unverified Commit 20d4e86e authored by stonezdj(Daojun Zhang)'s avatar stonezdj(Daojun Zhang) Committed by GitHub
Browse files

Merge pull request #13109 from Thoro/fix-encrypt-error-message

Add error log in case encryption on config save fails
parents 59f9ef7e 452a0c9c
......@@ -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