Skip to content

Commit

Permalink
Fix UpdateTurnstileWidget
Browse files Browse the repository at this point in the history
The request body must not include sitekey/secret, but did.
This fixes it.
  • Loading branch information
punkeel committed May 17, 2023
1 parent d3c1c1c commit d555d68
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: Fix sitekey/secret being sent in 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
Name string `json:"name,omitempty"`
Domains []string `json:"domains,omitempty"`
Mode string `json:"mode,omitempty"`
Expand Down

0 comments on commit d555d68

Please sign in to comment.