Commit 6577b086 authored by ale's avatar ale

Encode services JSON as a string

parent 70cd91e6
Pipeline #916 passed with stages
in 1 minute and 8 seconds
......@@ -256,7 +256,8 @@ func (h *Server) handleLogout(w http.ResponseWriter, req *http.Request, session
if req.Method == "POST" {
data["IsPOST"] = true
data["IncludeLogoutScripts"] = true
data["ServicesJSON"], _ = json.Marshal(svcs)
svcJSON, _ := json.Marshal(svcs)
data["ServicesJSON"] = string(svcJSON)
// Clear the local session.
httpSession, _ := h.authSessionStore.Get(req, authSessionKey)
......
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