blaa
This commit is contained in:
parent
baf4e39b6a
commit
2f08f5b323
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue