From c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 29 Apr 2023 15:39:25 +0200 Subject: Fixed invalid username handling --- controllers/root/login.js | 1 + 1 file changed, 1 insertion(+) (limited to 'controllers/root/login.js') diff --git a/controllers/root/login.js b/controllers/root/login.js index 431f7f9..dc506cc 100644 --- a/controllers/root/login.js +++ b/controllers/root/login.js @@ -39,5 +39,6 @@ export async function login_post(req, res) { if (Object.keys(page.errors).length === 0) { return res.redirect(302, '/games'); } + res.status(403); return res.render('login', page); } -- cgit v1.2.3