# HG changeset patch # User Thomas Junk # Date 1559302304 -7200 # Node ID 30f6647b8856e07fd7ac9ad56b7206935370d625 # Parent f3102fa16a69ec86694519ee6fecb82f4d72f220 import_configuration: if password was persisted it should be repersisted again, if missing in frontend diff -r f3102fa16a69 -r 30f6647b8856 pkg/controllers/importconfig.go --- a/pkg/controllers/importconfig.go Fri May 31 12:45:30 2019 +0200 +++ b/pkg/controllers/importconfig.go Fri May 31 13:31:44 2019 +0200 @@ -98,10 +98,13 @@ _, oldCron := pc.Attributes.Get("cron") session, _ := auth.GetSession(req) + oldPasswd := pc.Attributes["password"] pc.User = session.User pc.Attributes = common.Attributes{} pc.Attributes.Marshal(config) - + if oldPasswd != "" && pc.Attributes["password"] == "" { + pc.Attributes["password"] = oldPasswd + } cron, newCron := pc.Attributes.Get("cron") var tx *sql.Tx