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

@@ -9,12 +9,18 @@
[auto-ap.routes :as routes]
[bidi.bidi :as bidi]))
(re-frame/reg-sub
::logout-reason
(fn [db] (-> db :logout-reason)))
(defn login-page []
[:div.container
[:section.is-fullheight.hero
[:div.hero-body
[:div.container
[:div.column.is-4.is-offset-4.has-text-centered
(when-let [reason @(re-frame/subscribe [::logout-reason])]
[:div.notification.is-warning reason])
[:h1.title "Login"]
[:div.box.slideInFromBelow