Error when changing password http://dev.libresource.org/home/development/bug/Error_when_changing_password Comment of : Error when changing password http://dev.libresource.org/home/development/bug/Error_when_changing_password/Comment_of_Error_when_changing_password_2 maximeca 2007-12-27T15:20:21+01:00 Comment of : Error when changing password http://dev.libresource.org/home/development/bug/Error_when_changing_password/Comment_of_Error_when_changing_password_1 Sebastien Jourdain 2007-12-19T10:57:37+01:00 To fix it go in the file LS_ROOT/Src/LS-Client/Default-WebApp/WEB-INF/src/java/org/libresource/web/controllers/membership/EditProfileController.java

and fix the bottom of the file to make it look like this one

// authentification part
        String newPass1 = request.getParameter("newpass1");
        String newPass2 = request.getParameter("newpass2");

if ((newPass1 != null) && (newPass2 != null) && (newPass1.trim().length() > 0) && (newPass2.trim().length() > 0)) { if (newPass1.equals(newPass2)) { membershipService.editCasUser(user.getId(), newPass1); if (kernelService.getConnectedResource().equals(user.getUri())) { request.getSession().setAttribute("security_password", newPass1); } } }

// clean cache if (kernelService.getConnectedResource().equals(user.getUri())) { request.getSession().removeAttribute("connectedUserCache"); }

]]>
Comment of : Error when changing password http://dev.libresource.org/home/development/bug/Error_when_changing_password/Comment_of_Error_when_changing_password_0 maximeca 2007-12-19T10:44:19+01:00 Comment of : Error when changing password http://dev.libresource.org/home/development/bug/Error_when_changing_password/Comment_of_Error_when_changing_password Sebastien Jourdain 2007-12-18T17:46:10+01:00