 
         @._setTheme()
         @._setLocales()
-        @rootscope.broadcast("auth:logout")
+        @rootscope.$broadcast("auth:logout")
         @analytics.setUserId()
 
     register: (data, type, existing) ->

            user = @model.make_model("users", data.data)
            @.setToken(user.auth_token)
            @.setUser(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) ->
