Skip to content

Commit 90c50f0

Browse files
Jessica WangDaanHoogland
authored andcommitted
CLOUDSTACK-6805: UI > create account > fix a bug that account creation failed when password contains # character.
(cherry picked from commit 76c71c7)
1 parent ae837e3 commit 90c50f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ui/scripts/accountsWizard.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
password = args.data.password;
183183
if (md5Hashed) {
184184
password = $.md5(password);
185+
} else {
186+
password = todb(password);
185187
}
186188
array1.push("&password=" + password);
187189
}
@@ -218,6 +220,7 @@
218220
$.ajax({
219221
url: createURL('importLdapUsers' + array1.join("")),
220222
dataType: "json",
223+
type: "POST",
221224
async: false,
222225
success: function(json) {
223226
var count = json.ldapuserresponse.count;
@@ -233,6 +236,7 @@
233236
$.ajax({
234237
url: createURL('ldapCreateAccount' + array1.join("")),
235238
dataType: "json",
239+
type: "POST",
236240
async: false,
237241
success: function(json) {
238242
var item = json.createaccountresponse.account;
@@ -249,6 +253,7 @@
249253
$.ajax({
250254
url: createURL('createAccount' + array1.join("")),
251255
dataType: "json",
256+
type: "POST",
252257
async: false,
253258
success: function(json) {
254259
var item = json.createaccountresponse.account;

0 commit comments

Comments
 (0)