cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.4-forward to 76c71c7
Date Thu, 29 May 2014 18:54:52 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward f9c57daf2 -> 76c71c7bc


CLOUDSTACK-6805: UI > create account > fix a bug that account creation failed when password
contains # character.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/76c71c7b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/76c71c7b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/76c71c7b

Branch: refs/heads/4.4-forward
Commit: 76c71c7bc1fc0368e7d86c63107e269f34787c23
Parents: f9c57da
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu May 29 11:52:42 2014 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu May 29 11:52:42 2014 -0700

----------------------------------------------------------------------
 ui/scripts/accountsWizard.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/76c71c7b/ui/scripts/accountsWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/accountsWizard.js b/ui/scripts/accountsWizard.js
index e02a04e..f022193 100644
--- a/ui/scripts/accountsWizard.js
+++ b/ui/scripts/accountsWizard.js
@@ -182,6 +182,8 @@
                 password = args.data.password;
                 if (md5Hashed) {
                     password = $.md5(password);
+                } else {
+                	password = todb(password);
                 }
                 array1.push("&password=" + password);
             }
@@ -218,6 +220,7 @@
                     $.ajax({
                         url: createURL('importLdapUsers' + array1.join("")),
                         dataType: "json",
+                        type: "POST",
                         async: false,
                         success: function(json) {
                             var count = json.ldapuserresponse.count;
@@ -233,6 +236,7 @@
                     $.ajax({
                         url: createURL('ldapCreateAccount' + array1.join("")),
                         dataType: "json",
+                        type: "POST",
                         async: false,
                         success: function(json) {
                             var item = json.createaccountresponse.account;
@@ -249,6 +253,7 @@
                 $.ajax({
                     url: createURL('createAccount' + array1.join("")),
                     dataType: "json",
+                    type: "POST",
                     async: false,
                     success: function(json) {
                         var item = json.createaccountresponse.account;


Mime
View raw message