This commit is contained in:
asyncnomi 2023-01-08 22:25:38 +01:00
parent baf4e39b6a
commit 2f08f5b323

View file

@ -119,7 +119,7 @@ fastify.post('/login', async (request, reply) => {
uid: content.user,
isAdmin: AdminUsersUid.includes(content.user)
},
token: UsersToken[res.authUser.uid].token
token: UsersToken[content.user].token
}
} else {
return {
@ -175,7 +175,7 @@ fastify.post('/register', async (request, reply) => {
uid: content.user,
isAdmin: AdminUsersUid.includes(content.user)
},
token: UsersToken[res.authUser.uid].token
token: UsersToken[content.user].token
}
}
} else {