aboutsummaryrefslogtreecommitdiff
path: root/src/security/signed.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-01-25 14:47:47 +0100
committerMartin Fischer <martin@push-f.com>2021-01-25 15:06:48 +0100
commit9fa7442e41bc11ab3d62f43f5f6e90b59e160da2 (patch)
treec61b9dee4e03037f31d3761a17c8805ccade9cdd /src/security/signed.rs
parent76e92d7281b45ce506046a8946b7fde3355c485d (diff)
simplify CSRF API
This commit gets rid of the CsrfToken type, simplifying submission handling: // before let csrf_token = req.csrf_token(&mut response); let msg: FormData = body.into_form_csrf(&csrf_token).await?; // after let msg: FormData = body.into_form_csrf(req).await?; As well as HTML input retrieval: // before req.csrf_token(&mut response).html_input(); // after req.csrf_html_input(&mut response); This commit also merges the CsrfError type into CsrfProtectedFormError. bump version to 0.3.1
Diffstat (limited to 'src/security/signed.rs')
0 files changed, 0 insertions, 0 deletions