]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/main/Signup.java
Correct csrf-token impl.
[gigi.git] / src / org / cacert / gigi / pages / main / Signup.java
index 560b2727bbadb7750c708911eda053fb6f655a59..04f8114966bcc8c93fc100ab42d3550d6cbeb959 100644 (file)
@@ -32,7 +32,8 @@ public class Signup extends Form {
        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) {
@@ -63,6 +64,7 @@ public class Signup extends Form {
                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);
        }