Skip to content

Commit

Permalink
Merge pull request #3 from Learnosity/bug/fix-events-hash
Browse files Browse the repository at this point in the history
[BUG] Fix events api's request hash
  • Loading branch information
jack-vo committed Jun 15, 2015
2 parents 6d77c89 + bd2fe03 commit 4e8ee05
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified Dist/All/LearnositySDK.dll
Binary file not shown.
Binary file modified Dist/Light/LearnositySDK.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion LearnositySDK/Request/Init.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private void setServiceOptions()
hashedUsers = new JsonObject();
for (int i = 0; i < users.Length; i++) {
string user_id = users[i];
hashedUsers.set(user_id, Tools.hash(this.algorithm, user_id + consumer_key));
hashedUsers.set(user_id, Tools.hash(this.algorithm, user_id + this.secret));
}
this.requestPacket.set("users", hashedUsers);
}
Expand Down

0 comments on commit 4e8ee05

Please sign in to comment.