mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
commit
12c34c6d42
2 changed files with 9 additions and 7 deletions
|
@ -12,6 +12,7 @@
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
[app.db :as db]
|
[app.db :as db]
|
||||||
[app.rpc.commands.auth :as cmd.auth]
|
[app.rpc.commands.auth :as cmd.auth]
|
||||||
|
[app.rpc.commands.profile :as cmd.profile]
|
||||||
[app.util.json :as json]
|
[app.util.json :as json]
|
||||||
[app.util.time :as dt]
|
[app.util.time :as dt]
|
||||||
[cuerdas.core :as str]))
|
[cuerdas.core :as str]))
|
||||||
|
@ -37,7 +38,8 @@
|
||||||
:or {is-active true}}]
|
:or {is-active true}}]
|
||||||
(when-let [system (get-current-system)]
|
(when-let [system (get-current-system)]
|
||||||
(db/with-atomic [conn (:app.db/pool system)]
|
(db/with-atomic [conn (:app.db/pool system)]
|
||||||
(let [params {:id (uuid/next)
|
(let [password (cmd.profile/derive-password system password)
|
||||||
|
params {:id (uuid/next)
|
||||||
:email email
|
:email email
|
||||||
:fullname fullname
|
:fullname fullname
|
||||||
:is-active is-active
|
:is-active is-active
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
(def ^:private defaults
|
(def ^:private defaults
|
||||||
{:public-uri "http://localhost:3449"
|
{:public-uri "http://localhost:3449"
|
||||||
:tenant "default"
|
:tenant "dev"
|
||||||
:host "localhost"
|
:host "localhost"
|
||||||
:http-server-port 6061
|
:http-server-port 6061
|
||||||
:http-server-host "0.0.0.0"
|
:http-server-host "0.0.0.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue