0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Merge pull request #4620 from penpot/niwinz-bugfix-1

🐛 Bugfixes
This commit is contained in:
Alejandro 2024-05-23 15:48:51 +02:00 committed by GitHub
commit 12c34c6d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View file

@ -12,6 +12,7 @@
[app.common.uuid :as uuid]
[app.db :as db]
[app.rpc.commands.auth :as cmd.auth]
[app.rpc.commands.profile :as cmd.profile]
[app.util.json :as json]
[app.util.time :as dt]
[cuerdas.core :as str]))
@ -37,12 +38,13 @@
:or {is-active true}}]
(when-let [system (get-current-system)]
(db/with-atomic [conn (:app.db/pool system)]
(let [params {:id (uuid/next)
:email email
:fullname fullname
:is-active is-active
:password password
:props {}}]
(let [password (cmd.profile/derive-password system password)
params {:id (uuid/next)
:email email
:fullname fullname
:is-active is-active
:password password
:props {}}]
(->> (cmd.auth/create-profile! conn params)
(cmd.auth/create-profile-rels! conn))))))

View file

@ -17,7 +17,7 @@
(def ^:private defaults
{:public-uri "http://localhost:3449"
:tenant "default"
:tenant "dev"
:host "localhost"
:http-server-port 6061
:http-server-host "0.0.0.0"