-
Notifications
You must be signed in to change notification settings - Fork 2
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
Honeypot fields and logic #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this!
For app/controllers
and app/forms/users
, could we use the variable honeypot
instead of hp_field
, so that the field naming convention is consistent and the purpose of the field is spelled out? Without knowing in advance, I think it is hard to guess what hp
stands for in this context.
Co-authored-by: Rocket <[email protected]>
Co-authored-by: Rocket <[email protected]>
The guidance is not to have the name or id of the fields include the word
i.e. in the app/users/form:
in the controller:
Thoughts? |
Thank you for explaining. What about |
Sounds good, I went with Let me know if you think we should also rename the honeypot helper in the form builder to spam_trap? But I like that the honeypot method creates a spam trap 🤷 |
👍
🤔 I don't feel strongly about it. I think that if it's named the same thing consistently, there's less mental translation that someone has to do as they navigate the code, but I also think we can always rename it in the future if we hear feedback that it is cumbersome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Ticket
Changes
Context for reviewers
Added honeypot fields to publicly accessible forms to combat spam bots, following guidance from the rails security best practices doc
.
Testing