        {:type "text" :name "Name" :placeholder "Optional"}
        {:type "text" :name "Email" :placeholder "Optional"}
        {:type "password" :name "Password"}
-       {:type "password" :name "Repeat Password"}]
+       {:type "password" :name "Repeat Password"}
+       {:type "custom" :name "Humans only"
+        :content (recaptcha/get-html errors)}]
       [{:eclass :.btn-primary
         :value "Sign Up"}])))
 

  (flash/put! :success "You have been logged out.")
  (clear-identity (resp/redirect "/")))

(defpage signup "/signup" []
  (common/layout
    [:div.page-header [:h1 "Sign Up"]]
    (common/control-group-form
      :#login.well.form-horizontal
      {:action "/signup" :method "POST"}

(ns cadence.views.landing
  (:require [cadence.views.common :as common]
            [cadence.model :as model]
            [cadence.model.recaptcha :as recaptcha]
            [cadence.model.flash :as flash]
            [cemerick.friend :as friend]
            [noir.response :as resp])
