summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-13 13:13:13 -0400
committerCorey Hulen <corey@hulen.com>2016-07-13 09:13:13 -0800
commit8346bfec37e8f21bbe69c37a452e842a41005fdb (patch)
tree8fc03b504ba67bd2dd3aae679796a8e73d737f8a /api
parent2a0288f110a8539b57e24adc2433373f77f9d069 (diff)
downloadchat-8346bfec37e8f21bbe69c37a452e842a41005fdb.tar.gz
chat-8346bfec37e8f21bbe69c37a452e842a41005fdb.tar.bz2
chat-8346bfec37e8f21bbe69c37a452e842a41005fdb.zip
PLT-3584 Fix no team found when creating account (#3552)
Diffstat (limited to 'api')
-rw-r--r--api/user.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 846978971..513c39b96 100644
--- a/api/user.go
+++ b/api/user.go
@@ -2543,7 +2543,9 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) {
switch action {
case model.OAUTH_ACTION_SIGNUP:
teamId := relayProps["team_id"]
- go addDirectChannels(teamId, user)
+ if len(teamId) > 0 {
+ go addDirectChannels(teamId, user)
+ }
break
case model.OAUTH_ACTION_EMAIL_TO_SSO:
RevokeAllSession(c, user.Id)