Kicks the user out when their session expires.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user