notherbase-fs 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,9 +96,9 @@ router.get("/password-reset", async function(req, res) {
96
96
  }
97
97
  });
98
98
 
99
- router.post("/password-reset/:token", async function(req, res) {
99
+ router.post("/password-reset", async function(req, res) {
100
100
  try {
101
- const foundUser = await user.findOne({ "reset.token": req.params.token });
101
+ const foundUser = await user.findOne({ "reset.token": req.body.token });
102
102
 
103
103
  if (foundUser) {
104
104
  if (foundUser.reset.exp > Date.now()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {