mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 17:06:11 +02:00
Merge pull request #4050 from penpot/niwinz-staging-bugfix-8
🐛 Fix incorrect props handling on profile registration
This commit is contained in:
commit
d5aa4f3ee4
2 changed files with 21 additions and 33 deletions
|
@ -333,7 +333,9 @@
|
|||
(defn register-profile
|
||||
[{:keys [::db/conn] :as cfg} {:keys [token fullname] :as params}]
|
||||
(let [claims (tokens/verify (::main/props cfg) {:token token :iss :prepared-register})
|
||||
params (assoc claims :fullname fullname)
|
||||
params (-> claims
|
||||
(into params)
|
||||
(assoc :fullname fullname))
|
||||
|
||||
is-active (or (:is-active params)
|
||||
(not (contains? cf/flags :email-verification)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue