Skip to content

Commit

Permalink
Fix RotateTurnstileWidget
Browse files Browse the repository at this point in the history
Don't send the Sitekey in the request body.
  • Loading branch information
punkeel committed May 17, 2023
1 parent 707134c commit 62eaa9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/1285.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
turnstile: remove `SiteKey` being sent in rotate secret's request body
```
4 changes: 2 additions & 2 deletions turnstile.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ type ListTurnstileWidgetResponse struct {
}

type RotateTurnstileWidgetParams struct {
SiteKey string
InvalidateImmediately bool `json:"invalidate_immediately,omitempty"`
SiteKey string `json:"-"`
InvalidateImmediately bool `json:"invalidate_immediately,omitempty"`
}

// CreateTurnstileWidget creates a new challenge widgets.
Expand Down

0 comments on commit 62eaa9a

Please sign in to comment.