Author: ivol37 at gmail.com
Date: Thu Feb 3 14:07:45 2011
New Revision: 761
Log:
[AMDATU-261] Fixed incorrect encoding in password field. This time committed to
the trunk.
Modified:
trunk/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
Modified:
trunk/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
==============================================================================
---
trunk/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
(original)
+++
trunk/amdatu-authorization/useradmin-gadget/src/main/resources/static/js/useradmin.js
Thu Feb 3 14:07:45 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);