From fd56b8f36bef794318b6c3e28364e616e5e2a1fe Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 6 Mar 2017 11:14:44 -0300 Subject: enable saml for RN app (#5635) * enable saml for RN app * remove unnecessary user sanitize --- api/user.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/user.go b/api/user.go index d18c4e3c1..183f4e100 100644 --- a/api/user.go +++ b/api/user.go @@ -1451,7 +1451,12 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, c.GetSiteURL()+val, http.StatusFound) return } - http.Redirect(w, r, app.GetProtocol(r)+"://"+r.Host, http.StatusFound) + + if action == "mobile" { + w.Write([]byte("")) + } else { + http.Redirect(w, r, app.GetProtocol(r)+"://"+r.Host, http.StatusFound) + } } } -- cgit v1.2.3-1-g7c22