Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to be banned #123

Open
rjollos opened this issue Mar 17, 2017 · 4 comments
Open

Allow users to be banned #123

rjollos opened this issue Mar 17, 2017 · 4 comments

Comments

@rjollos
Copy link
Member

rjollos commented Mar 17, 2017

Sometimes we get users generating spam with their GitHub accounts. I guess there's probably a way to report these users, but it would be nice if we could just ban users by username. So far we haven't had a problem since these users go away after making a few comments and we are running TracSpamFilter so some stuff gets trapped. It would probably be simple enough though to have a list of users on a wiki page, and to reject login by users matching one of the usernames.

@aaugustin
Copy link
Contributor

Does this need to be coupled with trac-github? It seems to me that it could live as a standalone plugin, which may be more widely useful?

@rjollos
Copy link
Member Author

rjollos commented Mar 17, 2017

It won't be very useful as a standalone plugin. It's only useful in the case that you have a LoginModule that doesn't have any control over the username or password store. It will also be awkward to implement in a plugin and is only going to be a few lines of code. However, if you don't want it in trac-github I will find another way.

@aaugustin
Copy link
Contributor

I see, you want to blacklist the github username rather than the trac username.

You can go ahead with this idea.

@rjollos
Copy link
Member Author

rjollos commented Mar 17, 2017

Right, I was thinking to just compare the username and reject the login if the name is in the list of blacklisted users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants