From b91bb0a133aa3d0400beb359fed4e641c888ab26 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 31 Oct 2022 22:40:42 +0100 Subject: Added logout route, and a way to display the logout menu item on relevant pages --- controllers/login.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'controllers/login.js') diff --git a/controllers/login.js b/controllers/login.js index bff312e..b274a9e 100644 --- a/controllers/login.js +++ b/controllers/login.js @@ -1,6 +1,7 @@ -function makeLoginController() { +function makeController(req) { return { - title: "Connection", + title: "Connexion", + user: req.session.user, data: { username: "", password: "", @@ -9,4 +10,4 @@ function makeLoginController() { }; } -export default makeLoginController; +export default makeController; -- cgit v1.2.3