 (ns stonecutter.controller.user
-  (:require [clauth.client :as client]
-            [clauth.token :as token]
+  (:require [clauth.client :as cl-client]
+            [clauth.token :as cl-token]
+            [clauth.endpoints :as cl-ep]
             [ring.util.response :as r]
-            [clauth.endpoints :as ep]
-            [stonecutter.routes :refer [routes path]]
+            [stonecutter.routes :as routes]
             [stonecutter.view.sign-in :as sign-in]
             [stonecutter.validation :as v]
             [stonecutter.db.storage :as s]

    (if (empty? err)
      (-> (s/store-user! email password)
          redirect-to-profile-created)
      (html-response (register/registration-form request)))))

(defn sign-in [request]
  (let [client-id (get-in request [:session :client-id])

            [stonecutter.view.profile :as profile]
            [stonecutter.view.delete-account :as delete-account]
            [stonecutter.view.authorise :as authorise]
            [stonecutter.helper :as sh]))

(declare redirect-to-profile redirect-to-profile-created redirect-to-profile-deleted)

