Skip to content

Commit

Permalink
fix filebrowser#758: reCAPTCHA should use secret for verification (in…
Browse files Browse the repository at this point in the history
…stead… (filebrowser#875)
  • Loading branch information
xupefei authored and hacdias committed Oct 9, 2019
1 parent 4752758 commit ddb670a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type ReCaptcha struct {
// Ok checks if a reCaptcha responde is correct.
func (r *ReCaptcha) Ok(response string) (bool, error) {
body := url.Values{}
body.Set("secret", r.Key)
body.Set("secret", r.Secret)
body.Add("response", response)

client := &http.Client{}
Expand Down

0 comments on commit ddb670a

Please sign in to comment.