This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
- # xtdb (17)
Hi all. I am wondering if Liberator handles HTML login forms or it's just for APIs. I am particularly confused about what to do after using post!
, what if:
1. The provided credentials are correct, how can I redirect the user to, say, my dashboard?
2. The provided credentials are invalid, how can show my :handle-ok
contents back with some error message?
@somedude314 if the credentials are incorrect (which you would check in :authorized?
) then :handle-not-authorized
kicks in (returning status 401). There you can also return your message.
You should also set :post-redirect?
to true and set the :location
in the context to the target URL.