summaryrefslogtreecommitdiffstats
path: root/app/team.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-03-29 14:20:36 -0700
committerGitHub <noreply@github.com>2018-03-29 14:20:36 -0700
commit59606791a7b18b0a80626d5ec7f05b90b51c779d (patch)
tree6cd0ba11f8f55b03c81a4ac92d11a413be8c1727 /app/team.go
parent6fcdf4abc6068a0b7de021a6f7ca26b19cce4ed3 (diff)
downloadchat-59606791a7b18b0a80626d5ec7f05b90b51c779d.tar.gz
chat-59606791a7b18b0a80626d5ec7f05b90b51c779d.tar.bz2
chat-59606791a7b18b0a80626d5ec7f05b90b51c779d.zip
MM-9999 Fix unwanted team invite_id in email invites. (#8550)
* Fix unwanted team invite_id in email invites. * Removing unused translation.
Diffstat (limited to 'app/team.go')
-rw-r--r--app/team.go5
1 files changed, 0 insertions, 5 deletions
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