X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FChangePasswordPage.java;h=47a5f9151d25f317c819b612204efb56cb4bdc4d;hb=72328c64659f06441c35dbd4f8cdcfd41376e7a3;hp=75fd6bb27812e8eccc4c52244f09a09b471a7c53;hpb=562f4e5fabe180a8dfc4894241a89cae0d1655ee;p=gigi.git diff --git a/src/org/cacert/gigi/pages/account/ChangePasswordPage.java b/src/org/cacert/gigi/pages/account/ChangePasswordPage.java index 75fd6bb2..47a5f915 100644 --- a/src/org/cacert/gigi/pages/account/ChangePasswordPage.java +++ b/src/org/cacert/gigi/pages/account/ChangePasswordPage.java @@ -6,27 +6,26 @@ import java.util.HashMap; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.cacert.gigi.output.Form; -import org.cacert.gigi.pages.LoginPage; +import org.cacert.gigi.output.template.Form; import org.cacert.gigi.pages.Page; public class ChangePasswordPage extends Page { - public static final String PATH = "/account/password"; - - public ChangePasswordPage() { - super("Change Password"); - } - - @Override - public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { - new ChangeForm(req, LoginPage.getUser(req)).output(resp.getWriter(), getLanguage(req), - new HashMap()); - } - - @Override - public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { - ChangeForm f = Form.getForm(req, ChangeForm.class); - f.submit(resp.getWriter(), req); - } + + public static final String PATH = "/account/password"; + + public ChangePasswordPage() { + super("Change Password"); + } + + @Override + public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { + new ChangeForm(req, getUser(req)).output(resp.getWriter(), getLanguage(req), new HashMap()); + } + + @Override + public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { + ChangeForm f = Form.getForm(req, ChangeForm.class); + f.submit(resp.getWriter(), req); + } }