From 500d13ef898df9b7d7ec40b15399240a775d618b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 20 Dec 2011 10:32:38 -0800 Subject: [PATCH] cloudStack 3.0 new UI - use Post instead of GET when calling login API. (so, username and password won't be seen) --- ui/scripts/cloudStack.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 4cb45d8e2dc..09df9ba26c0 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -37,7 +37,9 @@ /** * Generic error handling */ + $.ajaxSetup({ + url: clientApiUrl, async: true, dataType: 'json', cache: false, @@ -161,8 +163,8 @@ } $.ajax({ - //type: "POST", - url: createURL("login") + array1.join(""), + type: "POST", + data: "command=login" + array1.join("") + "&response=json", dataType: "json", async: false, success: function(json) {