Chapter 9: Authentication samples

This commit is contained in:
Beth Griggs
2020-09-06 04:38:10 +01:00
parent c4714dffa7
commit e4862b5606
5 changed files with 1 additions and 5 deletions
-1
View File
@@ -29,4 +29,3 @@ router.get("/logout", function (req, res, next) {
});
module.exports = router;
-2
View File
@@ -2,10 +2,8 @@ const { Router } = require("express");
const router = Router();
router.get("/", function (req, res) {
const title = "Express";
const user = req.session.user;
res.render("index", { user });
});
module.exports = router;