summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorJulien Dessaux2023-04-29 15:39:25 +0200
committerJulien Dessaux2023-04-29 15:39:57 +0200
commitc86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4 (patch)
tree752b2396be946a0b75553bb3ac5feff4b40f476a /controllers
parentTypo (diff)
downloadjeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.tar.gz
jeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.tar.bz2
jeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.zip
Fixed invalid username handling
Diffstat (limited to 'controllers')
-rw-r--r--controllers/root/login.js1
1 files changed, 1 insertions, 0 deletions
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);
}