summaryrefslogtreecommitdiff
path: root/server/auth
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-07-09 20:53:02 -0400
committerJules Laplace <jules@okfoc.us>2014-07-09 20:53:02 -0400
commit1515428c5b5e1ad7501394176e3b4a85ab11b14b (patch)
treed80a313b21cb7080871c10961170a5f2641b1d2e /server/auth
parentd21afb68e2bf2db166d6bdad53d401f140e08d48 (diff)
serialize uses slightly diff syntax
Diffstat (limited to 'server/auth')
-rw-r--r--server/auth/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/auth/index.js b/server/auth/index.js
index e8fb483..2080531 100644
--- a/server/auth/index.js
+++ b/server/auth/index.js
@@ -65,8 +65,10 @@ var auth = module.exports = {
if (id == "guest") {
done(null, auth.guestUser)
}
- User.find({ id: id }, function (err, user) {
- done(err, user)
+ User.find({ where: { id: id } }).success(function (user) {
+ done(null, user)
+ }).error(function(){
+ done("error", null)
});
},