-
-
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
Allow Recaptcha service url to be configured #6820
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6820 +/- ##
==========================================
+ Coverage 41.21% 41.22% +<.01%
==========================================
Files 421 421
Lines 58118 58124 +6
==========================================
+ Hits 23955 23959 +4
- Misses 30989 30993 +4
+ Partials 3174 3172 -2
Continue to review full report at Codecov.
|
@@ -23,11 +24,11 @@ type Response struct { | |||
ErrorCodes []string `json:"error-codes"` | |||
} | |||
|
|||
const apiURL = "https://www.google.com/recaptcha/api/siteverify" | |||
const apiURL = "/api/siteverify" |
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.
Why not make the whole URL configurable?
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.
You'd need to have multiple URLs. The api.js and verify URL.
Can do it if wanted
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.
Ah, okay. It's fine the way it is then.
Fixes #6818