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:
Jessica Wang 2014-05-29 12:58:47 -07:00 committed by Rohit Yadav
parent 88d222abaa
commit 48f595beac
1 changed files with 5 additions and 0 deletions

View File

@ -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;