mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 18:38:31 +02:00
✨ Optimize profile setup flow for better user experience (#6223)
* ✨ Optimize profile setup flow for better user experience * 📎 Remove extra onboarding step * 📎 Code review * 📎 Update changelog --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
aae81b8a04
commit
86a498fc29
15 changed files with 364 additions and 422 deletions
|
@ -231,7 +231,7 @@
|
|||
:hint "email has complaint reports")))
|
||||
|
||||
(defn prepare-register
|
||||
[{:keys [::db/pool] :as cfg} {:keys [email] :as params}]
|
||||
[{:keys [::db/pool] :as cfg} {:keys [email accept-newsletter-updates] :as params}]
|
||||
|
||||
(validate-register-attempt! cfg params)
|
||||
|
||||
|
@ -243,7 +243,8 @@
|
|||
:backend "penpot"
|
||||
:iss :prepared-register
|
||||
:profile-id (:id profile)
|
||||
:exp (dt/in-future {:days 7})}
|
||||
:exp (dt/in-future {:days 7})
|
||||
:props {:newsletter-updates (or accept-newsletter-updates false)}}
|
||||
|
||||
params (d/without-nils params)
|
||||
token (tokens/generate (::setup/props cfg) params)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue