notherbase-fs 3.3.1 → 3.3.2
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.
- package/controllers/user.js +0 -8
- package/models/user.js +8 -0
- package/package.json +1 -1
package/controllers/user.js
CHANGED
|
@@ -124,14 +124,6 @@ export default class User {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* Checks if a user is logged in.
|
|
129
|
-
*/
|
|
130
|
-
loggedIn = () => {
|
|
131
|
-
if (this.id) return true;
|
|
132
|
-
else return false;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
127
|
/**
|
|
136
128
|
* Changes a user's email address on file.
|
|
137
129
|
* @param {Object} req An Express.js request.
|
package/models/user.js
CHANGED