mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6805: UI > create account > fix a bug that account creation failed when password contains # character.
(cherry picked from commit 9f4d464640)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
88d222abaa
commit
48f595beac
|
|
@ -191,6 +191,8 @@
|
|||
password = args.data.password;
|
||||
if (md5Hashed) {
|
||||
password = $.md5(password);
|
||||
} else {
|
||||
password = todb(password);
|
||||
}
|
||||
array1.push("&password=" + password);
|
||||
}
|
||||
|
|
@ -225,6 +227,7 @@
|
|||
$.ajax({
|
||||
url: createURL('importLdapUsers' + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var count = json.ldapuserresponse.count;
|
||||
|
|
@ -240,6 +243,7 @@
|
|||
$.ajax({
|
||||
url: createURL('ldapCreateAccount' + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var item = json.createaccountresponse.account;
|
||||
|
|
@ -256,6 +260,7 @@
|
|||
$.ajax({
|
||||
url: createURL('createAccount' + array1.join("")),
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var item = json.createaccountresponse.account;
|
||||
|
|
|
|||
Loading…
Reference in New Issue