]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/main/Signup.java
Cleanup additional tranlation.
[gigi.git] / src / org / cacert / gigi / pages / main / Signup.java
index bb72a9cd1a44fa516624823a36b7671c7d62ea58..0cadcf64a8c4575b9d94831c59c0b95c43e5e69d 100644 (file)
@@ -100,7 +100,7 @@ public class Signup extends Form {
             outputError(out, req, "Invalid date of birth");
         }
         if ( !"1".equals(req.getParameter("cca_agree"))) {
-            outputError(out, req, "You have to agree to the CAcert Community agreement.");
+            outputError(out, req, "You have to agree to the SomeCA Community agreement.");
         }
         if (email.equals("")) {
             outputError(out, req, "Email Address was blank");
@@ -158,12 +158,16 @@ public class Signup extends Form {
         if (isFailed(out)) {
             return false;
         }
+        if (RegisterPage.RATE_LIMIT.isLimitExceeded(req.getRemoteAddr())) {
+            outputError(out, req, "Rate Limit Exceeded");
+            return false;
+        }
         try {
             run(req, pw1);
         } catch (SQLException e) {
             e.printStackTrace();
         } catch (GigiApiException e) {
-            outputError(out, req, e.getMessage());
+            e.format(out, Page.getLanguage(req));
             return false;
         }
         return true;