mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 16:33:49 +08:00
fix(go): mask only if set;
This commit is contained in:
@@ -247,7 +247,10 @@ func getConfig(w http.ResponseWriter, r *http.Request) {
|
||||
// @Success 200 {object} config.ServerSettings
|
||||
func getSettings(w http.ResponseWriter, r *http.Request) {
|
||||
scfg := logic.GetServerSettings()
|
||||
if scfg.ClientSecret != "" {
|
||||
scfg.ClientSecret = logic.Mask()
|
||||
}
|
||||
|
||||
logic.ReturnSuccessResponseWithJson(w, r, scfg, "fetched server settings successfully")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user