From 8346bfec37e8f21bbe69c37a452e842a41005fdb Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 13 Jul 2016 13:13:13 -0400 Subject: PLT-3584 Fix no team found when creating account (#3552) --- api/user.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api') 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) -- cgit v1.2.3-1-g7c22