notherbase-fs 3.3.7 → 3.3.9

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.
@@ -114,12 +114,12 @@ export default class User {
114
114
  let spirit = await req.db.User.recallOne(req.body.email);
115
115
 
116
116
  if (check(res, spirit, "User not found.")) {
117
- let passResult = await bcrypt.compare(req.body.password, spirit.memory.data.password);
117
+ let passResult = await bcrypt.compare(req.body.password, spirit.data.password);
118
118
 
119
119
  if (check(res, passResult, "Password doesn't match the email.")) {
120
120
  req.session.currentUser = req.body.email;
121
121
 
122
- success(res, "Logged in.", spirit.memory.data.username);
122
+ success(res, "Logged in.", spirit.data.username);
123
123
  }
124
124
  }
125
125
  }
package/models/user.js CHANGED
@@ -30,7 +30,6 @@ export default class User extends Spirit {
30
30
  }
31
31
  else return null;
32
32
 
33
- console.log(query);
34
33
  let found = await Spirit.db.findOne(query);
35
34
 
36
35
  if (found) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.3.7",
3
+ "version": "3.3.9",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {