mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 14:36:10 +02:00
🐛 Making old-password non required again
This commit is contained in:
parent
db7c4a9265
commit
ea2e25b46d
2 changed files with 4 additions and 2 deletions
|
@ -133,7 +133,8 @@
|
||||||
(def schema:update-profile-password
|
(def schema:update-profile-password
|
||||||
[:map {:title "update-profile-password"}
|
[:map {:title "update-profile-password"}
|
||||||
[:password [::sm/word-string {:max 500}]]
|
[: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
|
(sv/defmethod ::update-profile-password
|
||||||
{:doc/added "1.0"
|
{:doc/added "1.0"
|
||||||
|
|
|
@ -337,7 +337,8 @@
|
||||||
[:map {:closed true}
|
[:map {:closed true}
|
||||||
[:password-1 :string]
|
[:password-1 :string]
|
||||||
[:password-2 :string]
|
[:password-2 :string]
|
||||||
[:password-old :string]])
|
;; Social registered users don't have old-password
|
||||||
|
[:password-old {:optional true} [:maybe :string]]])
|
||||||
|
|
||||||
(defn update-password
|
(defn update-password
|
||||||
[data]
|
[data]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue