From 59606791a7b18b0a80626d5ec7f05b90b51c779d Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 29 Mar 2018 14:20:36 -0700 Subject: MM-9999 Fix unwanted team invite_id in email invites. (#8550) * Fix unwanted team invite_id in email invites. * Removing unused translation. --- app/team.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/team.go') diff --git a/app/team.go b/app/team.go index a7b32af33..de71ed796 100644 --- a/app/team.go +++ b/app/team.go @@ -238,11 +238,6 @@ func (a *App) AddUserToTeamByHash(userId string, hash string, data string) (*mod team = result.Data.(*model.Team) } - // verify that the team's invite id hasn't been changed since the invite was sent - if team.InviteId != props["invite_id"] { - return nil, model.NewAppError("JoinUserToTeamByHash", "api.user.create_user.signup_link_mismatched_invite_id.app_error", nil, "", http.StatusBadRequest) - } - var user *model.User if result := <-uchan; result.Err != nil { return nil, result.Err -- cgit v1.2.3-1-g7c22