From 44e73b2c694efaa48d5782bd6c9d03514c2d258e Mon Sep 17 00:00:00 2001 From: Lucas TESSON Date: Wed, 24 Jul 2024 23:39:13 +0200 Subject: [PATCH 1/2] chore(deps): update CTFd to 3.7.3 --- .github/workflows/ci.yaml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aea00da..e8499ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest services: ctfd: - image: ctfd/ctfd:3.7.2@sha256:bb8077128668007e5130d37dbcd500b933cd449a4ae58fc327147f3811fbff7b + image: ctfd/ctfd:3.7.3@sha256:90470e1fe0f93028ce6ac197b8942916ee157d4b5d33c8266c5bec7662e55ac3 ports: - 8000:8000 steps: diff --git a/README.md b/README.md index b774fb7..51642f4 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Golang client for interacting with [CTFd](https://ctfd.io/). -Last version tested on: [3.7.2](https://github.com/CTFd/CTFd/releases/tag/3.7.2). +Last version tested on: [3.7.3](https://github.com/CTFd/CTFd/releases/tag/3.7.3). From de315d519dec7618b9d5405e6dc7f93e4aa5f747 Mon Sep 17 00:00:00 2001 From: Lucas TESSON Date: Wed, 24 Jul 2024 23:40:00 +0200 Subject: [PATCH 2/2] feat(api): add support of PATCH /configs `default_locale` attribute --- api/configs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/configs.go b/api/configs.go index 8d39866..a873af6 100644 --- a/api/configs.go +++ b/api/configs.go @@ -28,6 +28,10 @@ type PatchConfigsParams struct { ThemeHeader *string `json:"theme_header,omitempty"` ThemeSettings *string `json:"theme_settings,omitempty"` + // Localization + + DefaultLocale *string `json:"default_locale,omitempty"` + // Accounts DomainWhitelist *string `json:"domain_whitelist,omitempty"`