mirror of https://github.com/adamdruppe/arsd.git
forgot csrf token on automatic form
This commit is contained in:
parent
2f17188201
commit
a128370a24
2
web.d
2
web.d
|
@ -1072,6 +1072,8 @@ void run(Provider)(Cgi cgi, Provider instantiation, size_t pathInfoStartingPoint
|
||||||
form = createAutomaticForm(new Document, fun);// params, beautify(fun.originalName));
|
form = createAutomaticForm(new Document, fun);// params, beautify(fun.originalName));
|
||||||
foreach(k, v; cgi.get)
|
foreach(k, v; cgi.get)
|
||||||
form.setValue(k, v);
|
form.setValue(k, v);
|
||||||
|
|
||||||
|
instantiation.addCsrfTokens(form);
|
||||||
form.setValue("envelopeFormat", envelopeFormat);
|
form.setValue("envelopeFormat", envelopeFormat);
|
||||||
|
|
||||||
auto n = form.getElementById("function-name");
|
auto n = form.getElementById("function-name");
|
||||||
|
|
Loading…
Reference in New Issue