mirror of https://github.com/apache/cloudstack.git
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:
parent
056b1c8947
commit
500d13ef89
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue