diff --git a/routes/auth.js b/routes/auth.js index 9f4f5bb..b7b8775 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -88,4 +88,12 @@ router.get('/logout', function (req, res, next) { }); }); +router.get('/admin/logout', function (req, res, next) { + req.logout(function (err) { + if (err) { return next(err); } + if (req.session) { req.session.destroy() } + res.redirect('/'); + }); +}); + module.exports = router; diff --git a/views/admin/dashboard.hbs b/views/admin/dashboard.hbs index 29ae93b..e7785b0 100644 --- a/views/admin/dashboard.hbs +++ b/views/admin/dashboard.hbs @@ -4,7 +4,7 @@
- + {{!--
@@ -27,7 +27,7 @@
-
+
--}} diff --git a/views/auth/login.hbs b/views/auth/login.hbs index 9b9ed04..17bf335 100644 --- a/views/auth/login.hbs +++ b/views/auth/login.hbs @@ -20,16 +20,16 @@ -
+ {{!--
Forgot Password -
+
--}}
- --}} diff --git a/views/layout.hbs b/views/layout.hbs index e461ee8..22aaea4 100644 --- a/views/layout.hbs +++ b/views/layout.hbs @@ -178,7 +178,7 @@ {{#if user.permissions.admin}} {{else}} - + {{/if}} diff --git a/views/partials/admin/header.hbs b/views/partials/admin/header.hbs index 5d7be98..50537ad 100644 --- a/views/partials/admin/header.hbs +++ b/views/partials/admin/header.hbs @@ -44,7 +44,7 @@ --}}
  • - + Sign Out