From f936c30cbcf9c5e1e5e77929f37a28603ab7c73a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 6 Sep 2015 01:50:43 -0400 Subject: searchbox html --- lib/auth.js | 6 ++++++ lib/index.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/auth.js b/lib/auth.js index 0fb757c..38901e4 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -69,4 +69,10 @@ var auth = module.exports = { }); })(req, res, next) }, + + logout: function (req, res) { + req.logout(); + res.redirect('/'); + }, + } \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 7732001..45def38 100644 --- a/lib/index.js +++ b/lib/index.js @@ -73,7 +73,7 @@ site.route = function(){ }) app.get("/login", function(req, res){ res.render("pages/login", { - title: "" + title: "login" }) }) app.get("/index", middleware.ensureAuthenticated, function(req, res){ -- cgit v1.2.3-70-g09d2