]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/Verify.java
upd: use "submitProtected" more where applicable.
[gigi.git] / src / org / cacert / gigi / pages / Verify.java
index 0f88fe4048cd467b208fe477b8d92bce4bae2cfe..2a5950e91e23e586329cec5446f3f0707bcca228 100644 (file)
@@ -101,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)) {
         }
     }