-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
hCaptcha Support #12594
hCaptcha Support #12594
Conversation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Option 2 makes sense, perhaps we could also use the lessons learned from your library and apply them to the recaptcha one. |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
# Conflicts: # go.mod # vendor/modules.txt # web_src/less/_form.less
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #12594 +/- ##
==========================================
- Coverage 42.59% 42.57% -0.02%
==========================================
Files 671 672 +1
Lines 73625 73676 +51
==========================================
+ Hits 31363 31370 +7
- Misses 37180 37228 +48
+ Partials 5082 5078 -4
Continue to review full report at Codecov.
|
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.
We need some way of cancelling these calls. They're potentially preventing Gitea shutdown and I wonder if they could be used in a port exhaustion attack.
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
@zeripath Done. 🙂 |
Golangci-lint demands a sacrifice... Done |
I'd argue this could go into 1.13 as it's ready to be merged |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
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.
Thanks :)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
A few things to note with the latest changes...
|
This PR aims to add support for hCaptcha
Related to #12582, but may not completely close it.
Since the captcha errors aren't necessarily meaningful to translate to end-users, for now they are just being debug-logged (previously they weren't handled at all, so this is an improvement???)