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:
parent
8b60ba764f
commit
b5f9ede2cf
1 changed files with 1 additions and 3 deletions
|
@ -75,7 +75,7 @@ app.use(auth({
|
||||||
authDB: authDB,
|
authDB: authDB,
|
||||||
jsonResponse: true,
|
jsonResponse: true,
|
||||||
exceptions: [
|
exceptions: [
|
||||||
'favicon',
|
'/favicon.ico',
|
||||||
'/login',
|
'/login',
|
||||||
'/getveteranpw'
|
'/getveteranpw'
|
||||||
]
|
]
|
||||||
|
@ -146,8 +146,6 @@ app.post('/getpw', function (req, res) {
|
||||||
|
|
||||||
logger.Log(`User #${requestingUser.id} creted new user #${insertRes.lastInsertRowid}`, logger.GetColor('cyan'))
|
logger.Log(`User #${requestingUser.id} creted new user #${insertRes.lastInsertRowid}`, logger.GetColor('cyan'))
|
||||||
|
|
||||||
console.log(requestingUser)
|
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
result: 'success',
|
result: 'success',
|
||||||
pw: pw,
|
pw: pw,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue