Author: ivol37 at gmail.com
Date: Thu Feb  3 13:08:56 2011
New Revision: 760

Log:
[AMDATU-261] Fixed incorrect encoding in password field

Modified:
   
branches/amdatu-dispatcher/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js

Modified: 
branches/amdatu-dispatcher/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
==============================================================================
--- 
branches/amdatu-dispatcher/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
  (original)
+++ 
branches/amdatu-dispatcher/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
  Thu Feb  3 13:08:56 2011
@@ -184,7 +184,7 @@
   if (response.rc == 200) {
     // Role added successfully, try to set password
     var name = document.getElementById(currentView + 
"_name").value.to_rfc3986();
-    var newpassword = document.getElementById('password').value
+    var newpassword = document.getElementById('password').value.to_rfc3986();
     var url = "/rest/users/" + name + "/credentials/password";
     updatePassword(url, onPasswordSetForNewUser, newpassword);
   } else if (response.rc == 304) {
@@ -282,7 +282,7 @@
   var name = document.getElementById(currentView + "_name").value.to_rfc3986();
 
   if (currentView == "user") {
-    var newpassword = document.getElementById('password').value
+    var newpassword = document.getElementById('password').value.to_rfc3986();
     var url = "/rest/users/" + name;
     if (method != "update") {
       addRole(url, onUserAdded);

Reply via email to