From 3acf783d948ebb1907da875ef87b0da9ef2309ff Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 1 Jan 2023 23:23:57 +0100 Subject: Began adding tests --- controllers/root/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers/root/login.js') diff --git a/controllers/root/login.js b/controllers/root/login.js index b3e407b..ac6a471 100644 --- a/controllers/root/login.js +++ b/controllers/root/login.js @@ -16,14 +16,14 @@ function makePageData(user) { export function login_get(req, res) { if (req.session.user !== undefined) { - return res.redirect(302, "/play"); + return res.redirect(302, "/games"); } return res.render("login", makePageData(req.session.user)); } export async function login_post(req, res) { if (req.session.user !== undefined) { - return res.redirect(302, "/play"); + return res.redirect(302, "/games"); } let page = makePageData(req.session.user); page.data = req.body; -- cgit v1.2.3