mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
Merge pull request #3516 from gravitl/NET-2067
NET-2067: Oauth only setup;
This commit is contained in:
commit
251bc3aab0
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
scfg.ClientSecret = logic.Mask()
|
||||
if scfg.ClientSecret != "" {
|
||||
scfg.ClientSecret = logic.Mask()
|
||||
}
|
||||
|
||||
logic.ReturnSuccessResponseWithJson(w, r, scfg, "fetched server settings successfully")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue