Skip to content

Instantly share code, notes, and snippets.

@patrickod
Created May 24, 2014 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickod/d0b2301f9bc2c80b3c3a to your computer and use it in GitHub Desktop.
Save patrickod/d0b2301f9bc2c80b3c3a to your computer and use it in GitHub Desktop.
(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