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

Prevent certain usernames from being created #143

Closed
numeroteca opened this issue May 16, 2013 · 1 comment
Closed

Prevent certain usernames from being created #143

numeroteca opened this issue May 16, 2013 · 1 comment

Comments

@numeroteca
Copy link
Member

Names such as: pageonex, admin, user, thread, example...

does the devise gem help with this?

@rahulbot
Copy link
Collaborator

Verified on dev server. If you try to create an account with one of those names, it returns a normal validation error saying "Username isn't valid".

To add more invalid usernames, just modify the list in the ok_username method of app/models/user.rb.

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