From 8346bfec37e8f21bbe69c37a452e842a41005fdb Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 13 Jul 2016 13:13:13 -0400 Subject: [PATCH] PLT-3584 Fix no team found when creating account (#3552) --- api/user.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/user.go b/api/user.go index 8469789710..513c39b968 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)