add simple app authorization page

This commit is contained in:
Mystikfluu
2023-02-10 16:05:58 +01:00
parent abc03b4cde
commit 83941add4d
10 changed files with 233 additions and 8 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const setup = function (router, con, server) {
console.log("error parsing header",err)
}
}
if(req.body.auth != undefined) {
if(req.body.auth !== undefined && req.originalUrl!=="/redeemauthcode") {
if(typeof req.body.auth === "string") {
try{
req.body.auth = JSON.parse(req.body.auth)