X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2FVerify.java;h=2a5950e91e23e586329cec5446f3f0707bcca228;hb=7f8710300bd07946f9b1b5ae79d253f7e7d100b6;hp=0c8485420208067b74aaeae436e6e972da5d1b96;hpb=f6f8ffecc54f831d08ff113f68638170586c5c5f;p=gigi.git diff --git a/src/org/cacert/gigi/pages/Verify.java b/src/org/cacert/gigi/pages/Verify.java index 0c848542..2a5950e9 100644 --- a/src/org/cacert/gigi/pages/Verify.java +++ b/src/org/cacert/gigi/pages/Verify.java @@ -2,6 +2,7 @@ package org.cacert.gigi.pages; import java.io.IOException; import java.io.PrintWriter; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -18,9 +19,9 @@ import org.cacert.gigi.output.template.SprintfCommand; public class Verify extends Page { - private static final SprintfCommand emailAddressVerified = new SprintfCommand("Email address ${subject} verified"); + private static final SprintfCommand emailAddressVerified = new SprintfCommand("Email address {0} verified", Arrays.asList("${subject}")); - private static final SprintfCommand domainVerified = new SprintfCommand("Domain ${subject} verified"); + private static final SprintfCommand domainVerified = new SprintfCommand("Domain {0} verified", Arrays.asList("${subject}")); private class VerificationForm extends Form { @@ -100,11 +101,7 @@ public class Verify extends Page { @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { - try { - if (Form.getForm(req, VerificationForm.class).submit(resp.getWriter(), req)) { - } - } catch (GigiApiException e) { - e.format(resp.getWriter(), getLanguage(req)); + if (Form.getForm(req, VerificationForm.class).submitProtected(resp.getWriter(), req)) { } }