diff options
author | enahum <nahumhbl@gmail.com> | 2017-03-06 11:14:44 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-03-06 09:14:44 -0500 |
commit | fd56b8f36bef794318b6c3e28364e616e5e2a1fe (patch) | |
tree | a2b6f2b2bddab7201de01bc544ed030f9ae324f5 /api/user.go | |
parent | 4fd961883a152e9d5c27c5da0a847c5368e2c1a0 (diff) | |
download | chat-fd56b8f36bef794318b6c3e28364e616e5e2a1fe.tar.gz chat-fd56b8f36bef794318b6c3e28364e616e5e2a1fe.tar.bz2 chat-fd56b8f36bef794318b6c3e28364e616e5e2a1fe.zip |
enable saml for RN app (#5635)
* enable saml for RN app
* remove unnecessary user sanitize
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 7 |
1 files changed, 6 insertions, 1 deletions
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) + } } } |