-
Notifications
You must be signed in to change notification settings - Fork 10
fix: Exclude captcha field from mail #37
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
base: main
Are you sure you want to change the base?
fix: Exclude captcha field from mail #37
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the default HTML email template to skip the hCaptcha field in form submissions and standardizes translation tag usage by replacing all {% trans %} tags with {% translate %}. Flow diagram for excluding captcha_field from email templateflowchart TD
A["Start: cleaned_data.items loop"] --> B{Is field == 'captcha_field'?}
B -- Yes --> C["Skip field"]
B -- No --> D["Render field and value in email"]
D --> E["Continue loop"]
C --> E
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
==========================================
+ Coverage 81.39% 81.50% +0.10%
==========================================
Files 21 21
Lines 1473 1476 +3
Branches 181 181
==========================================
+ Hits 1199 1203 +4
Misses 219 219
+ Partials 55 54 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@pierreben Ohh... Well spotted! Hm. I believe we should move the rule for excluding the captcha field into python where the context is created. Also, I would remove any password fields (to keep secrets save). Ideally, those would also not be stored into the database when the Maybe the What do you think? |
|
I don’t yet have much perspective on the module as a whole, but here are a couple of observations:
|
When using hcaptcha with djangocms-form-builder the captcha_field value is included in the sent mail :
It should be ignored in the mail template.
And, I've changed the "trans" tags into "translate"
Summary by Sourcery
Exclude the captcha field from form submission emails and update translation tags in the default mail template
Bug Fixes:
Enhancements: