This is my API route in nodejs:
router.get('/reset/:token', function(req, res) {
User.findOne({ resetPasswordToken: req.params.token, resetPasswordExpires: { $gt: Date.now() } }, function(err, user) {
if (!user) {
res.json('Password reset token is invalid or has expired.');
}
res.json('Goed');
});
});
Now that I want to test this in Postman, I am using this wrong way:
Postman screenshot
Usually I do not work with parameters, how can I check this?
source
share