Skip to content
Snippets Groups Projects
Commit 211cd0ba authored by Allen Gilliland's avatar Allen Gilliland
Browse files

user created from setup endpoint should be a superuser.

parent a5b1e107
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,8 @@
:email email
:first_name first_name
:last_name last_name
:password (str (java.util.UUID/randomUUID)))]
:password (str (java.util.UUID/randomUUID))
:is_superuser true)]
;; this results in a second db call, but it avoids redundant password code so figure it's worth it
(set-user-password (:id new-user) password)
;; clear the setup token now, it's no longer needed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment