diff options
author | Julien Dessaux | 2023-04-29 15:39:25 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-04-29 15:39:57 +0200 |
commit | c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4 (patch) | |
tree | 752b2396be946a0b75553bb3ac5feff4b40f476a /controllers/root | |
parent | Typo (diff) | |
download | jeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.tar.gz jeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.tar.bz2 jeux-de-mots-c86bb2adbd906f0a01f8dfcf87eaa3cacf3aa6d4.zip |
Fixed invalid username handling
Diffstat (limited to 'controllers/root')
-rw-r--r-- | controllers/root/login.js | 1 |
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); } |