diff options
author | enahum <nahumhbl@gmail.com> | 2016-07-13 13:13:13 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-07-13 09:13:13 -0800 |
commit | 8346bfec37e8f21bbe69c37a452e842a41005fdb (patch) | |
tree | 8fc03b504ba67bd2dd3aae679796a8e73d737f8a /api/user.go | |
parent | 2a0288f110a8539b57e24adc2433373f77f9d069 (diff) | |
download | chat-8346bfec37e8f21bbe69c37a452e842a41005fdb.tar.gz chat-8346bfec37e8f21bbe69c37a452e842a41005fdb.tar.bz2 chat-8346bfec37e8f21bbe69c37a452e842a41005fdb.zip |
PLT-3584 Fix no team found when creating account (#3552)
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 4 |
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) |