mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added favicon to exceptions from auth in api
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user