X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fwot%2FAssuranceForm.java;fp=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fwot%2FAssuranceForm.java;h=9e69bd2f4affed6eb79a427d78e379cee153719c;hp=7d15e8dac5386d25b7179df81805c97ad8a5e1c2;hb=adaf867aa0aebdf1278b46eba300acc1a0760a9e;hpb=c0e2a3a0a951eb2f5696ba4bc9e11f9be06ce500 diff --git a/src/org/cacert/gigi/pages/wot/AssuranceForm.java b/src/org/cacert/gigi/pages/wot/AssuranceForm.java index 7d15e8da..9e69bd2f 100644 --- a/src/org/cacert/gigi/pages/wot/AssuranceForm.java +++ b/src/org/cacert/gigi/pages/wot/AssuranceForm.java @@ -175,16 +175,21 @@ public class AssuranceForm extends Form { if ( !gae.isEmpty()) { throw gae; } + + LinkedList toAssure = new LinkedList(); for (int i = 0; i < selected.length; i++) { if (selected[i]) { - Notary.assure(assurer, assuree, assureeNames[i], dob, pointsI, location, req.getParameter("date"), type); + toAssure.add(assureeNames[i]); } } + + Notary.assureAll(assurer, assuree, dob, pointsI, location, req.getParameter("date"), type, toAssure.toArray(new Name[toAssure.size()])); + if (aword != null && !aword.equals("")) { - Language l = Language.getInstance(assuree.getPreferredLocale()); - String method = l.getTranslation("A password reset was triggered. If you did a password reset by assurance, please enter your secret password using this form:"); - String subject = l.getTranslation("Password reset by assurance"); - PasswordResetPage.initPasswordResetProcess(out, assuree, req, aword, l, method, subject); + Language langApplicant = Language.getInstance(assuree.getPreferredLocale()); + String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by assurance, please enter your secret password using this form:"); + String subject = langApplicant.getTranslation("Password reset by assurance"); + PasswordResetPage.initPasswordResetProcess(out, assuree, req, aword, langApplicant, method, subject); } return true; }