summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorJonathan <jonfritz@gmail.com>2018-02-12 09:16:17 -0500
committerGitHub <noreply@github.com>2018-02-12 09:16:17 -0500
commit9707ac3aaf2cb4352c573aadf54b8535e237dd9e (patch)
tree9f8986f88f8e2fb51135fb5ca918651d087709f9 /api4/team_test.go
parentc1b6e8792c9f91c66c35737438c20757ef43066f (diff)
downloadchat-9707ac3aaf2cb4352c573aadf54b8535e237dd9e.tar.gz
chat-9707ac3aaf2cb4352c573aadf54b8535e237dd9e.tar.bz2
chat-9707ac3aaf2cb4352c573aadf54b8535e237dd9e.zip
Added invite_id field to email invite url, along with validation of this field on the server (#8235)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r--api4/team_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index a8696a30b..d365fd686 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -1250,7 +1250,7 @@ func TestAddTeamMember(t *testing.T) {
tm, resp := Client.AddTeamMember(team.Id, otherUser.Id)
CheckForbiddenStatus(t, resp)
if resp.Error == nil {
- t.Fatalf("Error is nhul")
+ t.Fatalf("Error is nil")
}
Client.Logout()
@@ -1376,6 +1376,7 @@ func TestAddTeamMember(t *testing.T) {
dataObject := make(map[string]string)
dataObject["time"] = fmt.Sprintf("%v", model.GetMillis())
dataObject["id"] = team.Id
+ dataObject["invite_id"] = team.InviteId
data := model.MapToJson(dataObject)
hashed := utils.HashSha256(fmt.Sprintf("%v:%v", data, th.App.Config().EmailSettings.InviteSalt))