diff options
-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) + } } } |