]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/wot/AssuranceForm.java
Enforce Output of CSRF token.
[gigi.git] / src / org / cacert / gigi / pages / wot / AssuranceForm.java
index 498cd6ad7ed324844394c1963be85a44bed4b01b..5819eb4d8b508a40e3c27b7aca9186cecc4df705 100644 (file)
@@ -32,10 +32,16 @@ public class AssuranceForm extends Form {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
 
        @Override
-       public void output(PrintWriter out, Language l, Map<String, Object> vars) {
+       public void outputContent(PrintWriter out, Language l,
+                       Map<String, Object> vars) {
                HashMap<String, Object> res = new HashMap<String, Object>();
                res.putAll(vars);
                res.put("name", assuree.getName());
+               try {
+                       res.put("maxpoints", assuree.getMaxAssurePoints());
+               } catch (SQLException e) {
+                       e.printStackTrace();
+               }
                res.put("dob", sdf.format(assuree.getDob()));
                templ.output(out, l, res);
        }