Resolve login problem
This commit is contained in:
parent
945ae9d1ac
commit
9e1522426a
1 changed files with 7 additions and 2 deletions
|
@ -58,8 +58,13 @@ async function preCheck<T>(
|
||||||
id: tokenData.id,
|
id: tokenData.id,
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
if (!oldDBToken) return
|
if (!oldDBToken)
|
||||||
if (!oldDBToken.used)
|
logging(
|
||||||
|
"Cookie could be verified but wasn't found in DB:" + tokenData,
|
||||||
|
["debug"],
|
||||||
|
req
|
||||||
|
)
|
||||||
|
else if (!oldDBToken.used)
|
||||||
logging("Old token was used: " + oldDBToken.id, ["debug"], req)
|
logging("Old token was used: " + oldDBToken.id, ["debug"], req)
|
||||||
else {
|
else {
|
||||||
await prisma.token.update({
|
await prisma.token.update({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue