forked from hippoz/brainlet
fix(gateway): remove unintended code
This commit is contained in:
parent
6376597857
commit
800d778183
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class GatewayHandler {
|
|||
|
||||
// Gateway message handlers
|
||||
async handle_YOO({ data }, session) {
|
||||
if (session.authenticated || !Array.isArray(data.roles) || data.roles.length > 10 || data.roles.) return {error: wsCloseCodes.PAYLOAD_ERROR};
|
||||
if (session.authenticated) return {error: wsCloseCodes.PAYLOAD_ERROR};
|
||||
try {
|
||||
if (!(await session.authenticateWithToken(data.token))) return {error: wsCloseCodes.AUTHENTICATION_ERROR};
|
||||
} catch(e) {
|
||||
|
|
Loading…
Reference in a new issue