Skip to content

Commit

Permalink
Parameter data-s for recaptcha (#21)
Browse files Browse the repository at this point in the history
* added parameter data-s

---------

Co-authored-by: kratzky <[email protected]>
  • Loading branch information
PBadicean and kratzky authored Oct 10, 2023
1 parent 29b87cb commit 17226ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api2captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ type (
Enterprise bool
Version string
Action string
DataS string
Score float64
}

Expand Down Expand Up @@ -727,6 +728,9 @@ func (c *ReCaptcha) ToRequest() Request {
if c.Action != "" {
req.Params["action"] = c.Action
}
if c.DataS != "" {
req.Params["data-s"] = c.DataS
}
if c.Score != 0 {
req.Params["min_score"] = strconv.FormatFloat(c.Score, 'f', -1, 64)
}
Expand Down

0 comments on commit 17226ba

Please sign in to comment.