Dump raw input

This commit is contained in:
Sven Seeberg 2020-10-29 18:55:38 +01:00
parent ba3a862dad
commit 5d731b0693
Signed by: sven.seeberg
GPG key ID: 29559DD5A83806B5

View file

@ -88,6 +88,11 @@ function export_result($cfg) {
return ["success" => false];
}
$sha256 = create_text_file($cfg, $body);
if ( strlen($cfg["export"]["rawpath"])>0) {
file_put_contents(
$cfg["export"]["rawpath"] . "/" . $body->event_token . "" . $body->vote_round .".json",
json_encode($body));
}
return ["success" => true, "sha256" => $sha256, "signing_key" => $cfg["export"]["pgpkey"]];
}