0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00

🐛 Use correct fullname after OICD registration process

This commit is contained in:
Andrey Antukh 2023-07-07 13:55:03 +02:00 committed by Alejandro Alonso
parent f85a9011ee
commit 60130d4db2
2 changed files with 3 additions and 2 deletions

View file

@ -55,6 +55,7 @@
- Fix problem with slashes in layers names for exporter [#3276](https://github.com/penpot/penpot/issues/3276) - Fix problem with slashes in layers names for exporter [#3276](https://github.com/penpot/penpot/issues/3276)
- Fix incorrect modified data on moving files on dashboard [Taiga #5530](https://tree.taiga.io/project/penpot/issue/5530) - Fix incorrect modified data on moving files on dashboard [Taiga #5530](https://tree.taiga.io/project/penpot/issue/5530)
- Fix focus handling on comments edition [Taiga #5560](https://tree.taiga.io/project/penpot/issue/5560) - Fix focus handling on comments edition [Taiga #5560](https://tree.taiga.io/project/penpot/issue/5560)
- Fix incorrect fullname use on registring user after OIDC authentication [Taiga #5517](https://tree.taiga.io/project/penpot/issue/5517)
### :arrow_up: Deps updates ### :arrow_up: Deps updates

View file

@ -323,9 +323,9 @@
:extra-data ptoken}))) :extra-data ptoken})))
(defn register-profile (defn register-profile
[{:keys [::db/conn] :as cfg} {:keys [token] :as params}] [{:keys [::db/conn] :as cfg} {:keys [token fullname] :as params}]
(let [claims (tokens/verify (::main/props cfg) {:token token :iss :prepared-register}) (let [claims (tokens/verify (::main/props cfg) {:token token :iss :prepared-register})
params (merge params claims) params (assoc claims :fullname fullname)
is-active (or (:is-active params) is-active (or (:is-active params)
(not (contains? cf/flags :email-verification))) (not (contains? cf/flags :email-verification)))