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

Allow Recaptcha service url to be configured #6820

Merged
merged 2 commits into from
May 2, 2019

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented May 1, 2019

Fixes #6818

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 1, 2019
@techknowlogick techknowlogick added type/enhancement An improvement of existing functionality and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 1, 2019
@techknowlogick techknowlogick added this to the 1.9.0 milestone May 1, 2019
@codecov-io
Copy link

codecov-io commented May 1, 2019

Codecov Report

Merging #6820 into master will increase coverage by <.01%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
modules/templates/helper.go 48.66% <ø> (ø) ⬆️
routers/user/auth_openid.go 0% <0%> (ø) ⬆️
modules/recaptcha/recaptcha.go 0% <0%> (ø) ⬆️
modules/setting/service.go 78.26% <100%> (+0.48%) ⬆️
routers/user/auth.go 13.04% <40%> (-0.04%) ⬇️
models/unit.go 62.16% <0%> (-5.41%) ⬇️
models/repo_list.go 67.89% <0%> (+1.05%) ⬆️
modules/process/manager.go 81.15% <0%> (+4.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 159294f...9f0151f. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 1, 2019
@@ -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"
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 2, 2019
@lafriks lafriks merged commit ade88a8 into go-gitea:master May 2, 2019
@zeripath zeripath deleted the fix-#6818 branch May 5, 2019 23:42
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using reCAPTCHA globally
7 participants