From ea2e25b46d39cb906180b860a9734564e54d2f6a Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 24 Jul 2023 13:27:19 +0200 Subject: [PATCH] :bug: Making old-password non required again --- backend/src/app/rpc/commands/profile.clj | 3 ++- frontend/src/app/main/data/users.cljs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/profile.clj b/backend/src/app/rpc/commands/profile.clj index 56b352ffcd..c79e4c773e 100644 --- a/backend/src/app/rpc/commands/profile.clj +++ b/backend/src/app/rpc/commands/profile.clj @@ -133,7 +133,8 @@ (def schema:update-profile-password [:map {:title "update-profile-password"} [:password [::sm/word-string {:max 500}]] - [:old-password [::sm/word-string {:max 500}]]]) + ;; Social registered users don't have old-password + [:old-password {:optional true} [:maybe [::sm/word-string {:max 500}]]]]) (sv/defmethod ::update-profile-password {:doc/added "1.0" diff --git a/frontend/src/app/main/data/users.cljs b/frontend/src/app/main/data/users.cljs index 9e042aa9b6..92d2e8bb18 100644 --- a/frontend/src/app/main/data/users.cljs +++ b/frontend/src/app/main/data/users.cljs @@ -337,7 +337,8 @@ [:map {:closed true} [:password-1 :string] [:password-2 :string] - [:password-old :string]]) + ;; Social registered users don't have old-password + [:password-old {:optional true} [:maybe :string]]]) (defn update-password [data]