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);
}
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) {
}
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++) {