X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FMyDetails.java;h=bf80d47beaf53fb1197a5f169944342ab04fbe44;hb=026be634ec02aefadf63e6812bff0f900db9ff0f;hp=4b0aa992fe6025bac5ed46c834a96fef62958acc;hpb=aa5723dbb64ec8efa63909d39ff72364f0a5ee96;p=gigi.git diff --git a/src/org/cacert/gigi/pages/account/MyDetails.java b/src/org/cacert/gigi/pages/account/MyDetails.java index 4b0aa992..bf80d47b 100644 --- a/src/org/cacert/gigi/pages/account/MyDetails.java +++ b/src/org/cacert/gigi/pages/account/MyDetails.java @@ -44,8 +44,10 @@ public class MyDetails extends Page { @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { - if (req.getParameter("processDetails") != null) { - Form.getForm(req, MyDetailsForm.class).submit(resp.getWriter(), req); + if (req.getParameter("action") != null || req.getParameter("removeName") != null || req.getParameter("deprecateName") != null || req.getParameter("preferred") != null) { + if (Form.getForm(req, MyDetailsForm.class).submit(resp.getWriter(), req)) { + resp.sendRedirect(PATH); + } } super.doPost(req, resp); }