Template t;
boolean general = true, country = true, regional = true, radius = true;
- public Signup() {
+ public Signup(HttpServletRequest hsr) {
+ super(hsr);
try {
t = new Template(new InputStreamReader(Signup.class.getResourceAsStream("Signup.templ"), "UTF-8"));
} catch (UnsupportedEncodingException e) {
vars.put("radius", radius ? " checked=\"checked\"" : "");
vars.put("helpOnNames", String.format(l.getTranslation("Help on Names %sin the wiki%s"),
"<a href=\"//wiki.cacert.org/FAQ/HowToEnterNamesInJoinForm\" target=\"_blank\">", "</a>"));
+ vars.put("csrf", getCSRFToken());
t.output(out, l, vars);
}