     [:div.page-header [:h1 "Cadence"]]
     [:p "Welcome to cadence"]))
 
-(defpage login-page "/login" []
+(defpage login "/login" []
   (common/layout
     [:div.page-header [:h1 "Login"]]
     (common/default-form

       {:type "password" :name "Password"}]
      [{:value "Log In"}])))

;(defpage login-check [:post "/login"] {:as user}
  ;(if (model/get-user (:username user))
    ;(do
      ;(sess/flash-put! "Successfully Logged In!")
      ;(resp/redirect (url-for root)))
    ;(do
      ;(sess/flash-put! "Log In Failed.")
      ;(resp/redirect (url-for login)))))

(defpage logout "/logout" []
  (sess/clear!)
  (sess/flash-put! "You have been logged out.")
  (resp/redirect "/"))

(defpage signup "/signup" []
  (common/layout

(ns cadence.views.landing
  (:require [cadence.views.common :as common]
            [cadence.model :as model]
            [cadence.model.flash :as flash]
            [cemerick.friend :as friend]
            [noir.response :as resp])
  (:use noir.core
        hiccup.core
        hiccup.page-helpers))
