users are not activated, looks like you can edit existing ones

This commit is contained in:
Bryce Covert
2018-05-21 17:48:59 -07:00
parent d020a4d254
commit 3fee89f840
12 changed files with 282 additions and 35 deletions

View File

@@ -28,13 +28,16 @@
:body
(doto println))
user (users/find-or-insert! {:provider "google"
:provider_id (:id profile)})]
:provider-id (:id profile)
:role "none"
:name (:name profile)})]
(if (and token user)
{:status 301
:headers {"Location" (str "/?jwt=" (jwt/sign {:user "test"
:exp (time/plus (time/now) (time/days 7))
:companies (:companies user)
:role (:role user)
:name (:name profile)}
(:jwt-secret env)
{:alg :hs512}))}}