add error code for invalid login cookie

This commit is contained in:
Mystikfluu
2022-09-10 18:29:18 +02:00
parent 21cfc8218b
commit f90c093075
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ function getunsigned(req, res) {
let unsigned = unsign(cookie, req, res);
if (!unsigned) {
try {
res.status(402);
res.status(401);
res.json({ "error": "Bad auth cookie set" });
}
catch (ignored) { } //sometimes it errors, gotta debug soon