Skip to content

Commit 623a144

Browse files
author
Jessica Wang
committed
bug 13434: cloudstack 3.0 new UI - if md5Hashed is false, use encodeURIComponent() to encode password before sending it to API call.
1 parent cdc7c40 commit 623a144

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎ui/scripts/accounts.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@
673673
var password = args.data.password;
674674
if (md5Hashed)
675675
password = $.md5(password);
676+
else
677+
password = todb(password);
676678
array1.push("&password=" + password);
677679

678680
array1.push("&email=" + todb(args.data.email));
@@ -755,6 +757,8 @@
755757
var password = args.data.newPassword;
756758
if (md5Hashed)
757759
password = $.md5(password);
760+
else
761+
password = todb(password);
758762
$.ajax({
759763
url: createURL("updateUser&id=" + args.context.users[0].id + "&password=" + password),
760764
dataType: "json",

‎ui/scripts/cloudStack.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
if (md5HashedLogin)
159159
password = $.md5(args.data.password);
160160
else
161-
password = args.data.password;
161+
password = todb(args.data.password);
162162
array1.push("&password=" + password);
163163

164164
var domain;

‎ui/scripts/installWizard.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)