           (edn-response {:ok true}))
       (error-response 400 :no-such-email)))
 
-  ; accept an email invite to join a group
+  ;; accept an email invite to join a group
   (POST "/register" [token invite_id email now hmac :as req]
     (let [fail {:status 400 :headers {"Content-Type" "text/plain"}}]
       (cond

        (error-response 401 "Group is private"))
      (error-response 404 "No group with that id found")))

  ; log in
  (PUT "/session" [email password :as req]
    (if-let [user-id (when (and email password)
                       (user/authenticate-user email password))]

                   :body ""}))
              (assoc bad-resp :body "Not logged in")))))))

  ;; reset password
  (POST "/reset" [new-password token user-id :<< as-uuid now hmac :as req]
    (let [fail {:status 400 :headers {"Content-Type" "text/plain"}}]
      (cond
