rem: sendPageAndWait("users/password.xml", { 
add: sendPageAndWait("users/" + userId + "/password.xml", { 
context: function user_change_password(checkPassword, userId) {    var user = getUserManager().getUser(userId);    var oldPassword = "";    var newPassword = "";    var confirmPassword = "";    var message = "";        while (true) {	    sendPageAndWait("users/password.xml", {	    	"user-id" : userId,	    	"new-password" : newPassword,	    	"confirm-password" : confirmPassword,	    	"message" : message,	    	"check-password" : checkPassword,	    });	    	    if (cocoon.request.get("cancel")) {	    	break;	    }	    		if (cocoon.request.get("submit")) {	    		    oldPassword = cocoon.request.get("old-password");		    newPassword = cocoon.request.get("new-password");		    confirmPassword = cocoon.request.get("confirm-password");		    		    if (checkPassword && !user.authenticate(oldPassword)) {		    	message = "Wrong password!";		    }            else if (!newPassword.equals(confirmPassword)) {		    	message = "New password and confirmed password are not equal!";		    }		    else {	        	user.setPassword(newPassword);	    		user.save();	    		break;		    }		}    }       	sendPage("redirect.html", { "url" : "index.html" });    }
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/12471b61211afdc841e584d85fb80a05d69d4b6a/user-admin.js/clean/src/webapp/lenya/content/admin/users/user-admin.js