diff --git a/README.md b/README.md index 141def6..bfc29d5 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to - Triggers notification on every connected socket, then shuts down after 20 seconds - Server must be setup as a pm2/docker/systemd process for automatic restarting - Ability to change tags + - Similar to the MPP.net server, but uses a Brandon-style admin message ## TODO @@ -54,6 +55,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to - Permission groups and permissions - Probable permission groups: owner, admin, mod, trialmod, default - Setup tags for each permission group +- Redo ratelimits - Full server-wide event bus - Channel events - Socket events diff --git a/config/users.yml b/config/users.yml index 3218941..89f09f2 100644 --- a/config/users.yml +++ b/config/users.yml @@ -31,11 +31,11 @@ enableAdminEval: true # The token validation scheme. Valid values are "none", "jwt" and "uuid". # This server will still validate existing tokens generated with other schemes if not set to "none". -tokenAuth: jwt +tokenAuth: none # The browser challenge scheme. Valid values are "none", "obf" and "basic". # This is to change what is sent in the "b" message. # "none" will disable the browser challenge, # "obf" will sent an obfuscated function to the client, # and "basic" will just send a simple function that expects a boolean. -browserChallenge: basic +browserChallenge: none diff --git a/public b/public index ccc02f6..7f58dd8 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit ccc02f653a3eebeb2d64f894b978cc78a5c62c42 +Subproject commit 7f58dd80a3cc72a4f141c3a94e561e3f2bf3c5fe diff --git a/src/ws/Socket.ts b/src/ws/Socket.ts index 7de985d..5e37411 100644 --- a/src/ws/Socket.ts +++ b/src/ws/Socket.ts @@ -360,9 +360,7 @@ export class Socket extends EventEmitter { try { tag = JSON.parse(this.user.tag) as Tag; - } catch (err) { - logger.warn("Unable to parse tag:", err); - } + } catch (err) { } return { _id: facadeID, diff --git a/src/ws/events/user/handlers/hi.ts b/src/ws/events/user/handlers/hi.ts index 694d851..b9e7b95 100644 --- a/src/ws/events/user/handlers/hi.ts +++ b/src/ws/events/user/handlers/hi.ts @@ -70,7 +70,7 @@ export const hi: ServerEventListener<"hi"> = { }; } - logger.debug("Tag:", part.tag); + //logger.debug("Tag:", part.tag); socket.sendArray([{ m: "hi",