rem: password = new Packages.java.lang.String(newPassword); 
add: var password = new Packages.java.lang.String(newPassword); 
context: function userChangePassword(checkPassword) {	resolve();	try {	    var redirectUri = getRequestUri();        var userId = getAccreditableId();		    var user = getAccreditableManager().getUserManager().getUser(userId);	    var oldPassword = "";	    var newPassword = "";	    var confirmPassword = "";	    var message = "";	    var enabled = "true";	    	    if (user.getClass().getName().endsWith("LDAPUser")) {	        message = "You cannot change the password of this user.";	        enabled = false;	    }	    	    var ready = false;	    	    while (!ready) {		    cocoon.sendPageAndWait("users/password.xml", {		    	"user-id" : userId,		    	"new-password" : newPassword,		    	"confirm-password" : confirmPassword,		    	"message" : message,		    	"check-password" : checkPassword,		    	"enabled" : enabled		    });		    			if (cocoon.request.get("submit")) {	    			    oldPassword = cocoon.request.get("old-password");			    newPassword = cocoon.request.get("new-password");                password = new Packages.java.lang.String(newPassword);			    confirmPassword = cocoon.request.get("confirm-password");			    			    if (checkPassword && !user.authenticate(oldPassword)) {			    	message = "You entered a wrong password.";			    }	            else if (!newPassword.equals(confirmPassword)) {			    	message = "New password and confirmed password are not equal.";			    }	            else if (password.length() < 6) {    	            message = "The password must be at least six characters long.";	            }    	            else if (!password.matches(".*\\d.*")) {    	        message = "The password must contain at least one number.";	            }			    else {		        	user.setPassword(newPassword);		    		user.save();				    ready = true;			    }			}			else {			    ready = true;			}		    }	    	   	cocoon.redirectTo(redirectUri);   	}   	finally {   		release();   	}    }
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/152ac5e047d5c78c882e822c4f39de9c7eea4066/user-admin.js/clean/src/webapp/lenya/content/admin/users/user-admin.js