Skip to content

Commit 120c6fe

Browse files
committed
Unset _perishable_token after reset password, instead of setting it to null. #951
1 parent b3c5e83 commit 120c6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/UserController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class UserController extends AdaptableController {
173173
return this.config.database.adaptiveCollection('_User').then(function (collection) {
174174
// Need direct database access because verification token is not a parse field
175175
return collection.findOneAndUpdate({ username: username },// query
176-
{ $set: { _perishable_token: null } } // update
176+
{ $unset: { _perishable_token: null } } // update
177177
);
178178
});
179179
});

0 commit comments

Comments
 (0)