             user = @model.make_model("users", response.data)
             @.setToken(user.auth_token)
             @.setUser(user)
-            @rootscope.broadcast("auth:register", user)
+            @rootscope.$broadcast("auth:register", user)
             return user
 
     getInvitation: (token) ->

            user = @model.make_model("users", user)

            @.setUser(user)
            @rootscope.broadcast("auth:refresh", user)
            return user

    login: (data, type) ->


        @._setTheme()
        @._setLocales()
        @rootscope.$broadcast("auth:logout")
        @analytics.setUserId()

    register: (data, type, existing) ->
