         verify-user-email-path (path-for req ::verify-user-email)]
     (apply format "%s://%s:%d%s?code=%s&email=%s" (conj values verify-user-email-path code email))))
 
-(defrecord SignupWithTotp [appname renderer fields session-store user-domain  verification-code-store emailer]
+(defrecord SignupWithTotp [appname renderer fields session-store user-domain  verification-code-store emailer fields-reset]
   WebService
   (request-handlers [this]
     {::signup-form

(defprotocol WelcomeRenderer
  (render-welcome [_ req model]))


;; One simple component that does signup, reset password, login form. etc.
;; Mostly you want something simple that works which you can tweak later - you can provide your own implementation based on the reference implementation

                         {:name "password" :label "Password" :password? true :placeholder "password"}
                         {:name "name" :label "Name" :placeholder "name"}
                         {:name "email" :label "Email" :placeholder "email"}]
                :fields-reset [
                               {:name "old_pw" :label "Old Password" :password? true :placeholder "old password"}
                               {:name "new_pw" :label "New Password" :password? true :placeholder "new password"}
                               {:name "new_pw_bis" :label "Repeat New Password" :password? true :placeholder "repeat new password"}]
                })
        (s/validate {:appname s/Str
                     :fields [{:name s/Str
                               :label s/Str
                               (s/optional-key :placeholder) s/Str
                               (s/optional-key :password?) s/Bool}]
                     :fields-reset [{:name s/Str
                                     :label s/Str
                                     (s/optional-key :placeholder) s/Str
                                     (s/optional-key :password?) s/Bool}]
                     (s/optional-key :emailer) (s/protocol Emailer)})
        map->SignupWithTotp)
   [:user-domain :session-store :renderer :verification-code-store ]))
