notherbase-fs 4.0.8 → 4.0.10

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.
@@ -70,6 +70,8 @@ export default class Creation {
70
70
  if (req.session.currentUser) {
71
71
  context.user = await req.db.Spirit.recallOne("user", null, { username: req.session.currentUser });
72
72
  }
73
+ console.log(req.session.currentUser, context.user);
74
+
73
75
 
74
76
  res.render(req.toRender, context);
75
77
  }
@@ -105,8 +105,6 @@ export default class User {
105
105
 
106
106
  if (check(res, passResult, "Password doesn't match the username.")) {
107
107
  req.session.currentUser = req.body.username;
108
- console.log(req.session.currentUser, req.body.username);
109
-
110
108
 
111
109
  success(res, "Logged in.", spirit.memory.data.username);
112
110
  }
package/notherbase-fs.js CHANGED
@@ -61,6 +61,8 @@ class NotherBaseFS {
61
61
  else req.hosting = split[split.length - 2];
62
62
  }
63
63
  else req.hosting = split[0];
64
+ console.log(req.hosting);
65
+
64
66
  req.contentPath = this.bases[req.hosting].directory;
65
67
  next();
66
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {