String name = request.getParameter("name");
String emailAddress = request.getParameter("emailAddress");
String website = request.getParameter("website");
String profile = request.getParameter("profile");
PebbleUserDetails currentUserDetails = SecurityUtils.getUserDetails();
// can the user change their user details?
if (!currentUserDetails.isDetailsUpdateable()) {
return new FourZeroThreeView();
}
SecurityRealm realm = PebbleContext.getInstance().getConfiguration().getSecurityRealm();
PebbleUserDetails newUserDetails;
ValidationContext validationContext = new ValidationContext();
if (!validationContext.hasErrors()) {
newUserDetails = new PebbleUserDetails(
currentUserDetails.getUsername(),
name,
emailAddress,
website,
profile,