Added favicon to exceptions from auth in api

This commit is contained in:
MrFry 2020-04-07 15:41:57 +02:00
parent 8b60ba764f
commit b5f9ede2cf

View file

@ -75,7 +75,7 @@ app.use(auth({
authDB: authDB,
jsonResponse: true,
exceptions: [
'favicon',
'/favicon.ico',
'/login',
'/getveteranpw'
]
@ -146,8 +146,6 @@ app.post('/getpw', function (req, res) {
logger.Log(`User #${requestingUser.id} creted new user #${insertRes.lastInsertRowid}`, logger.GetColor('cyan'))
console.log(requestingUser)
res.json({
result: 'success',
pw: pw,