cloudStack 3.0 new UI - use Post instead of GET when calling login API. (so, username and password won't be seen)

This commit is contained in:
Jessica Wang 2011-12-20 10:32:38 -08:00
parent 056b1c8947
commit 500d13ef89
1 changed files with 4 additions and 2 deletions

View File

@ -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) {