+ if (toAssure.size() == 0) {
+ throw new GigiApiException("You must confirm at least one name to verify an account.");
+ }
+
+ Notary.assureAll(assurer, assuree, dob, pointsI, location, req.getParameter("date"), type, toAssure.toArray(new Name[toAssure.size()]), cs.getCountry());
+ Outputable result = new TranslateCommand("Verification complete.");
+ if (isWithPasswordReset()) {
+ Language langApplicant = Language.getInstance(assuree.getPreferredLocale());
+ String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by verification, please enter your secret password using this form:");
+ String subject = langApplicant.getTranslation("Password reset by verification");
+ PasswordResetPage.initPasswordResetProcess(assuree, req, aword, langApplicant, method, subject);
+ result = new ConcatOutputable(result, new TranslateCommand("Password reset successful."));
+ }
+ return new SuccessMessageResult(result);
+ }