diff options
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) |