Skip to content

Commit

Permalink
return user._id in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
taobataoma committed Apr 22, 2017
1 parent 202ba9c commit f13943e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core/server/controllers/core.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports.renderIndex = function (req, res) {
var safeUserObject = null;
if (req.user) {
safeUserObject = {
_id: req.user._id,
displayName: validator.escape(req.user.displayName),
provider: validator.escape(req.user.provider),
username: validator.escape(req.user.username),
Expand Down

0 comments on commit f13943e

Please sign in to comment.