Skip to content

Commit

Permalink
Changing authenticationToken to password. Removing left in debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
bit-jonathanm committed Mar 6, 2018
1 parent 5ff6bf6 commit cacc4ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/brainCloudClient-identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,18 +604,18 @@ function BCIdentity() {
* Service Operation - CHANGE_EMAIL_IDENTITY
*
* @param oldEmailAddress Old email address
* @param authenticationToken Password for identity
* @param password Password for identity
* @param newEmailAddress New email address
* @param updateContactEmail Whether to update contact email in profile
* @param callback The method to be invoked when the server response is received
*/
bc.identity.changeEmailIdentity = function(oldEmailAddress, authenticationToken, newEmailAddress, updateContactEmail, callback) {
bc.identity.changeEmailIdentity = function(oldEmailAddress, password, newEmailAddress, updateContactEmail, callback) {
bc.brainCloudManager.sendRequest({
service: bc.SERVICE_IDENTITY,
operation: bc.identity.OPERATION_CHANGE_EMAIL_IDENTITY,
data: {
oldEmailAddress : oldEmailAddress,
authenticationToken : authenticationToken,
authenticationToken : password,
newEmailAddress : newEmailAddress,
updateContactEmail : updateContactEmail
},
Expand Down
15 changes: 5 additions & 10 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,10 @@

asyncTest("attachEmailIdentity()", 2, function() {
bc.identity.attachEmailIdentity(UserA.email,
UserA.password, function(result) {
UserA.password,
UserA.email,
true,
function(result) {
ok(true, JSON.stringify(result));
equal(result.status, 200, "Expecting 200");
start();
Expand All @@ -1897,18 +1900,10 @@
newEmail,
true,
function(result) {

console.log("wtf");

console.log(JSON.stringify(result));

ok(true, JSON.stringify(result));
equal(result.status, 200, "Expecting 200");
equal(result.status, 400, "Expecting 400");
start();

console.log("wtf");
});


});
}
Expand Down

0 comments on commit cacc4ee

Please sign in to comment.