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

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

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

    login: (data, type) ->

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

    getInvitation: (token) ->
