sdslabs / jinora

Slack webhook app to create anonymous public channels
https://chat.sdslabs.co
88 stars 10 forks source link

Apply bad words filter before accepting the username #63

Open itaditya opened 6 years ago

itaditya commented 6 years ago

In the form in which a user is required to enter a username, any word is accepted. I was able to use even bad words (need examples ?) as my username. Then in the chat also bad words are sent to other users. This hinders a chat conversation. Some filter must be provided or else give user a preference to mask bad words in a conversation

csoni111 commented 6 years ago

Implementing such a filter would be a good idea. We can either use another library (wordfilter) to do this on the server side or build our custom filter using a list of bad words stored in a json blob online.

captn3m0 commented 6 years ago

You'll always miss out somethings and the filter will be bypassed. Also see https://gist.github.com/mahemoff/2314663, might be helpful if we're fixing this.