     config =
       headers:
         'Content-Type': 'application/x-www-form-urlencoded'
-      params:
-        login: loginName
-        password: password
     @log.debug("Attempting login for #{loginName}")
-    @postId("login", {}, config)
+    data = $.param
+      login: loginName
+      password: password
+    @postId("login", data, config)
     .success (results) =>
       @log.debug("Logged in!")
       @setLoggedIn(results)


apiKey = "eb34bd67.megadroneshare"

atmosphereOptions =
  contentType : 'application/json'


  postId: (id, obj, c) =>
    @log.debug("Posting to #{@endpoint}/#{id}")
    c = merge(c ? {}, @config)
    @http.post("#{@urlBase()}/#{id}", obj, c)

  delete: (id, c) =>
