Kicks the user out when their session expires.

This commit is contained in:
BC
2019-03-01 07:58:30 -08:00
parent 1fa6154f39
commit c726613ecc
5 changed files with 31 additions and 15 deletions

View File

@@ -46,7 +46,7 @@
(if (and token user)
{:status 301
:headers {"Location" (str "/?jwt=" (jwt/sign (doto {:user (:name profile)
:exp (time/plus (time/now) (time/days 7))
:exp (time/plus (time/now) (time/days 30))
:user/clients (map (fn [c]
(dissoc c :client/bank-accounts ))
(:user/clients user))