* The Sone web interface
*/
public EditProfilePage(Template template, WebInterface webInterface) {
- super("editProfile.html", template, "Page.EditProfile.Title", webInterface);
+ super("editProfile.html", template, "Page.EditProfile.Title", webInterface, true);
}
//
profile.setMiddleName(middleName.length() > 0 ? middleName : null);
profile.setLastName(lastName.length() > 0 ? lastName : null);
profile.setBirthDay(birthDay).setBirthMonth(birthMonth).setBirthYear(birthYear);
- if (profile.isModified()) {
- currentSone.setProfile(profile);
- }
+ currentSone.setProfile(profile);
throw new RedirectException("index.html");
}
template.set("firstName", firstName);
template.set("birthYear", birthYear);
}
- //
- // SONETEMPLATEPAGE METHODS
- //
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected boolean requiresLogin() {
- return true;
- }
-
}