summaryrefslogtreecommitdiffstats
path: root/api4/oauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/oauth.go')
-rw-r--r--api4/oauth.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/api4/oauth.go b/api4/oauth.go
index 3ace501e4..33c166da4 100644
--- a/api4/oauth.go
+++ b/api4/oauth.go
@@ -417,6 +417,9 @@ func completeOAuth(c *Context, w http.ResponseWriter, r *http.Request) {
} else if action == model.OAUTH_ACTION_SSO_TO_EMAIL {
redirectUrl = app.GetProtocol(r) + "://" + r.Host + "/claim?email=" + url.QueryEscape(props["email"])
+ } else if action == model.OAUTH_ACTION_MOBILE {
+ ReturnStatusOK(w)
+ return
} else {
session, err := app.DoLogin(w, r, user, "")
if err != nil {