Skip to content

Commit

Permalink
Merge pull request #1284 from punkeel/maxime/fix-UpdateTurnstileWidget
Browse files Browse the repository at this point in the history
Fix UpdateTurnstileWidget
  • Loading branch information
jacobbednarz committed May 17, 2023
2 parents d3c1c1c + 2828acb commit a73c78b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/1284.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
turnstile: remove `SiteKey`/`Secret` being sent in update request body
```
3 changes: 1 addition & 2 deletions turnstile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ type CreateTurnstileWidgetParams struct {
}

type UpdateTurnstileWidgetParams struct {
SiteKey string `json:"sitekey,omitempty"`
Secret string `json:"secret,omitempty"`
SiteKey string `json:"-"`
Name string `json:"name,omitempty"`
Domains []string `json:"domains,omitempty"`
Mode string `json:"mode,omitempty"`
Expand Down

0 comments on commit a73c78b

Please sign in to comment.