diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-02 15:17:28 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-02 15:17:28 -0400 |
| commit | 55639122a00e77aaca1c6ac2faa5bc9f61ce7124 (patch) | |
| tree | 9f5f9950950d8ba7ad237607901bfdaab4261e4c /server | |
| parent | d8a798ea153a3020ccb21f79259a3ff13e8622e1 (diff) | |
fix intro animation
Diffstat (limited to 'server')
| -rw-r--r-- | server/lib/api/profile.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/api/profile.js b/server/lib/api/profile.js index fdd1bde..996505f 100644 --- a/server/lib/api/profile.js +++ b/server/lib/api/profile.js @@ -10,6 +10,8 @@ var _ = require('lodash'), var profile = { show: function(req, res){ User.findOne({ _id: req.user._id }, function(err, user){ + user = user.toObject() + delete user.password res.json(err || user) }) }, |
