-
-
Save patrickod/d0b2301f9bc2c80b3c3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def app | |
(-> (handler/site | |
(friend/authenticate | |
app-routes | |
{:credential-fn (partial creds/bcrypt-credential-fn (admins-for-login)) | |
:login-uri "/admin/login" | |
:workflows [(workflows/interactive-form)] | |
:redirect-on-auth? true | |
:default-landing-uri "/admin"})) | |
(wrap-resource "public"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment