   [group-id]
   (let [now (.getTime (java.util.Date.))
         group (db/get-group group-id)
-        form-hmac (hmac hmac-secret (str now group-id))
+        form-hmac (hmac (config :hmac-secret) (str now group-id))
         api-domain (:api-domain config)]
     (clostache/render-resource "templates/link_signup.html.mustache"
                                {:api-domain api-domain

(defn reset-page
  [user token]
  (let [now (.getTime (java.util.Date.))
        form-hmac (hmac hmac-secret (str now token (user :id)))
        api-domain (config :api-domain)]
    (clostache/render-resource "templates/reset_page.html.mustache"
                               {:api_domain api-domain

(defn register-page
  [invite token]
  (let [now (.getTime (java.util.Date.))
        form-hmac (hmac (config :hmac-secret)
                        (str now token (invite :id) (invite :invitee-email)))
        api-domain (:api-domain config)]
    (clostache/render-resource "templates/register_page.html.mustache"
