Remove modified tracker from Profile.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / EditProfilePage.java
index 372562b..87f7aef 100644 (file)
@@ -40,7 +40,7 @@ public class EditProfilePage extends SoneTemplatePage {
         *            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);
        }
 
        //
@@ -73,9 +73,7 @@ public class EditProfilePage extends SoneTemplatePage {
                        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);
@@ -86,16 +84,4 @@ public class EditProfilePage extends SoneTemplatePage {
                template.set("birthYear", birthYear);
        }
 
-       //
-       // SONETEMPLATEPAGE METHODS
-       //
-
-       /**
-        * {@inheritDoc}
-        */
-       @Override
-       protected boolean requiresLogin() {
-               return true;
-       }
-
 }