                 (db/user-add-to-group! (user :id) (invite :group-id))
                 (db/user-subscribe-to-group-tags! (user :id) (invite :group-id))
                 (db/retract-invitation! (invite :id)))
-              (sync/broadcast-user-change (user :id) [:chat/new-user (dissoc user :email)])
+              (sync/broadcast-user-change (user :id) [:chat/new-user user])
               {:status 302 :headers {"Location" "/"}
                :session (assoc (req :session) :user-id (user :id))
                :body ""}))))))

                   clojure.java.io/resource
                   slurp)]
      (string/replace html #"\{\{\w*\}\}" replacements)))

  (POST "/register" [token invite_id password email now hmac nickname avatar :as req]
    (let [fail {:status 400 :headers {"Content-Type" "text/plain"}}]

            [chat.server.sync :as sync :refer [sync-routes]]
            [environ.core :refer [env]]
            [chat.shared.util :refer [valid-nickname?]]
            [chat.server.cache :refer [random-nonce]]
            [chat.server.db :as db]
            [chat.server.invite :as invites]
            [chat.server.digest :as digest]
