From 8eddcd64f125776aef48d2566a14b8799a4de34e Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 5 Aug 2024 11:05:56 +0200 Subject: [PATCH] :bug: Fix user language validator --- CHANGES.md | 6 ++++++ backend/src/app/rpc/commands/profile.clj | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 5b1363679..5ebcda0d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.1.2 + +### :bug: Bugs fixed + +- User switch language to "zh_hant" will get 400 [Github #4884](https://github.com/penpot/penpot/issues/4884) + ## 2.1.1 ### :sparkles: New features diff --git a/backend/src/app/rpc/commands/profile.clj b/backend/src/app/rpc/commands/profile.clj index 40b8b8a43..e3b453e26 100644 --- a/backend/src/app/rpc/commands/profile.clj +++ b/backend/src/app/rpc/commands/profile.clj @@ -102,7 +102,7 @@ (sm/define [:map {:title "update-profile"} [:fullname [::sm/word-string {:max 250}]] - [:lang {:optional true} [:string {:max 5}]] + [:lang {:optional true} [:string {:max 8}]] [:theme {:optional true} [:string {:max 250}]]])) (sv/defmethod ::update-profile