MM-9999 Fix unwanted team invite_id in email invites. (#8550)

* Fix unwanted team invite_id in email invites.

* Removing unused translation.
Этот коммит содержится в:
Christopher Speller
2018-03-29 14:20:36 -07:00
коммит произвёл GitHub
родитель 6fcdf4abc6
Коммит 59606791a7
5 изменённых файлов: 0 добавлений и 78 удалений

Просмотреть файл

@@ -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