From 78775f1976bd13f695c5aa9c8b8317927cf6737f Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Sun, 22 Sep 2013 23:07:21 +0200 Subject: [PATCH] Added email to username if no name is given Gets rid of generic "Ghost" - we know a user will always have an email address as it is a required field. --- core/server.js | 1 + core/server/views/partials/navbar.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server.js b/core/server.js index c0de647805..e5633c4ef2 100644 --- a/core/server.js +++ b/core/server.js @@ -112,6 +112,7 @@ function ghostLocals(req, res, next) { _.extend(res.locals, { currentUser: { name: currentUser.attributes.name, + email: currentUser.attributes.email, image: currentUser.attributes.image } }); diff --git a/core/server/views/partials/navbar.hbs b/core/server/views/partials/navbar.hbs index ea1cc471f6..ab4478f1b9 100644 --- a/core/server/views/partials/navbar.hbs +++ b/core/server/views/partials/navbar.hbs @@ -10,7 +10,7 @@