Skip to content

Instantly share code, notes, and snippets.

@bobo
Created March 15, 2010 10:08
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 bobo/332692 to your computer and use it in GitHub Desktop.
Save bobo/332692 to your computer and use it in GitHub Desktop.
(defn login-controller [session params]
(if
(valid-login? (params :name) (params :password))
(do
(println "valud:" (get-uid-for-username (params :name)))
(session-assoc :login true :uid (get-uid-for-username (params :name)))
(redirect-to "/view/")
)
(redirect-to "/login/")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment