Fix Discord Request Implements Final
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
This commit is contained in:
parent
1be1f65453
commit
ad084e3555
@ -683,9 +683,6 @@ function startServer(client) {
|
|||||||
log.server("Discord Auth : [IDENTITE] : Nouvelle identité - SOCKET_ID : " + socket.id + " - DISCORD_USER : " + response.username + "#" + response.discriminator)
|
log.server("Discord Auth : [IDENTITE] : Nouvelle identité - SOCKET_ID : " + socket.id + " - DISCORD_USER : " + response.username + "#" + response.discriminator)
|
||||||
socket.emit("registerToken", token)
|
socket.emit("registerToken", token)
|
||||||
|
|
||||||
socket.emit("successLogin")
|
|
||||||
|
|
||||||
|
|
||||||
const tokens = require(__dirname + path.sep + "tokens.json")
|
const tokens = require(__dirname + path.sep + "tokens.json")
|
||||||
|
|
||||||
tokens[token] = response
|
tokens[token] = response
|
||||||
@ -693,8 +690,10 @@ function startServer(client) {
|
|||||||
await fs.writeFileSync(__dirname + path.sep + "tokens.json", JSON.stringify(tokens, null, 2))
|
await fs.writeFileSync(__dirname + path.sep + "tokens.json", JSON.stringify(tokens, null, 2))
|
||||||
|
|
||||||
await addAllUsers()
|
await addAllUsers()
|
||||||
|
|
||||||
|
await socket.emit("successLogin")
|
||||||
actualize()
|
actualize()
|
||||||
|
|
||||||
authTokenWait.delete(token)
|
authTokenWait.delete(token)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user