diff options
Diffstat (limited to '')
-rw-r--r-- | controllers/root/login.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |