X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fmain%2FSignup.java;fp=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fmain%2FSignup.java;h=416788e5f77846ff5f290cf7b5ac416b87eb073f;hp=7cc389e72e2ac2b249c0b4c78773cdc5a8f3d04a;hb=ab158a1d59d4fc38f2ebffb4939199870314dcb6;hpb=0dff9238feff9bc2d1ae79e5341c01b2811bcce8 diff --git a/src/org/cacert/gigi/pages/main/Signup.java b/src/org/cacert/gigi/pages/main/Signup.java index 7cc389e7..416788e5 100644 --- a/src/org/cacert/gigi/pages/main/Signup.java +++ b/src/org/cacert/gigi/pages/main/Signup.java @@ -93,7 +93,11 @@ public class Signup extends Form { } if ( !CalendarUtil.isOfAge(myDoB.getDate(), User.MINIMUM_AGE)) { - ga.mergeInto(new GigiApiException("Entered dated of birth is below the restricted age requirements.")); + ga.mergeInto(new GigiApiException("Entered date of birth is below the restricted age requirements.")); + } + + if (CalendarUtil.isOfAge(myDoB.getDate(), User.MAXIMUM_PLAUSIBLE_AGE)) { + ga.mergeInto(new GigiApiException("Entered date of birth exceeds the maximum age set in our policies. Please check your DoB is correct and contact support if the issue persists.")); } if ( !"1".equals(req.getParameter("tos_agree"))) {