Skip to content

Commit

Permalink
Unset _perishable_token after reset password, instead of setting it…
Browse files Browse the repository at this point in the history
… to null. parse-community#951
  • Loading branch information
carmenlau committed Mar 23, 2016
1 parent 38708bb commit 54f754a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class UserController extends AdaptableController {
return this.config.database.adaptiveCollection('_User').then(function (collection) {
// Need direct database access because verification token is not a parse field
return collection.findOneAndUpdate({ username: username },// query
{ $set: { _perishable_token: null } } // update
{ $unset: { _perishable_token: null } } // update
);
});
});
Expand Down

0 comments on commit 54f754a

Please sign in to comment.