We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_perishable_token
1 parent b3c5e83 commit 120c6feCopy full SHA for 120c6fe
src/Controllers/UserController.js
@@ -173,7 +173,7 @@ export class UserController extends AdaptableController {
173
return this.config.database.adaptiveCollection('_User').then(function (collection) {
174
// Need direct database access because verification token is not a parse field
175
return collection.findOneAndUpdate({ username: username },// query
176
- { $set: { _perishable_token: null } } // update
+ { $unset: { _perishable_token: null } } // update
177
);
178
});
179
0 commit comments