X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fcacert%2Fgigi%2Futil%2FNotary.java;h=e1c903e867cf589896790842f88925d9db5e5c92;hb=387e0d272cbfcba12bf917e52910e67890f5313f;hp=cba93aba8ee78f92a6b40b00252d8bc7c55eaf6b;hpb=adaf867aa0aebdf1278b46eba300acc1a0760a9e;p=gigi.git diff --git a/src/org/cacert/gigi/util/Notary.java b/src/org/cacert/gigi/util/Notary.java index cba93aba..e1c903e8 100644 --- a/src/org/cacert/gigi/util/Notary.java +++ b/src/org/cacert/gigi/util/Notary.java @@ -87,7 +87,7 @@ public class Notary { throw gae; } if (date == null || date.equals("")) { - gae.mergeInto(new GigiApiException("You must enter the date when you met the assuree.")); + gae.mergeInto(new GigiApiException("You must enter the date when you met the applicant.")); } else { try { Date d = DateSelector.getDateFormat().parse(date); @@ -128,7 +128,7 @@ public class Notary { } if ( !assuree.getDoB().equals(dob)) { - gae.mergeInto(new GigiApiException("The person you are assuring changed his personal details.")); + gae.mergeInto(new GigiApiException("The person you are verifying changed his personal details.")); } if (awarded < 0) { @@ -239,6 +239,9 @@ public class Notary { } public synchronized static void assureAll(User assurer, User assuree, DayDate dob, int awarded, String location, String date, AssuranceType type, Name[] toAssure) throws GigiApiException { + if (toAssure.length == 0) { + throw new GigiApiException("You must confirm at least one name to verify an account."); + } boolean[] hadLessThan50Points = new boolean[toAssure.length]; boolean hadTotalLessThan100 = assuree.getAssurancePoints() < 100; for (int i = 0; i < toAssure.length; i++) {