import java.util.Map;
import org.cacert.gigi.dbObjects.Assurance;
+import org.cacert.gigi.dbObjects.Name;
import org.cacert.gigi.localisation.Language;
import org.cacert.gigi.output.template.IterableDataset;
import org.cacert.gigi.output.template.Outputable;
Assurance assurance = assurances[i];
vars.put("id", assurance.getId());
vars.put("method", assurance.getMethod());
+ Name to = assurance.getTo();
if (assurer) {
- vars.put("verbVal", assurance.getTo().getOwner().getId());
- vars.put("myName", assurance.getTo());
+ vars.put("verbVal", to == null ? l.getTranslation("applicant's name removed") : to.getOwner().getId());
+ vars.put("myName", to == null ? l.getTranslation("applicant's name removed") : to);
} else {
vars.put("verbVal", assurance.getFrom().getPreferredName());
- vars.put("myName", assurance.getTo());
+ vars.put("myName", to == null ? l.getTranslation("own name removed") : to);
}
vars.put("date", assurance.getDate());
vars.put("location", assurance.getLocation());
}
}
error.mergeInto(new GigiApiException(SprintfCommand.createSimple(//
- "The requested Subject alternate name \"{0}\" has been removed.", san.getType().toString().toLowerCase() + ":" + san.getName())));
+ "The requested subject alternate name (SAN) \"{0}\" has been removed.", san.getType().toString().toLowerCase() + ":" + san.getName())));
}
SANs = filteredSANs;
}
<div class="panel-heading"><?=_Manage email accounts?></div>
<div class="panel-body">
<p>
-<?=_Please Note: You can not set an unverified account as a default account, and you can not remove a default account. To remove the default account you must set another verified account as the default.?>
+<?=_Please Note: You can not set an unverified email address as a default email address, and you can not remove a default email address. To remove the default email address you must set another verified email address as the default.?>
</p>
</div>
<?=$manForm?>
} else if (type == AssuranceType.TTP_ASSISTED) {
assureTTP(assurer, assuree, assureeName, awarded, location, date);
} else {
- throw new GigiApiException(SprintfCommand.createSimple("Unknown Assurance type: {0}", type.toString()));
+ throw new GigiApiException(SprintfCommand.createSimple("Unknown Verification type: {0}", type.toString()));
}
assurer.invalidateMadeAssurances();
assuree.invalidateReceivedAssurances();