Downgrade Tera + Temporary disable CSRF protection

Bugs in these crates prevented articles from displaying correctly.
This commit is contained in:
Bat
2018-09-08 23:09:59 +01:00
parent f66ddf6ef2
commit 995c173146
3 changed files with 18 additions and 66 deletions
+8 -7
View File
@@ -145,12 +145,13 @@ fn main() {
rocket_i18n::tera(&mut engines.tera);
}))
.attach(rocket_i18n::I18n::new("plume"))
.attach(CsrfFairingBuilder::new()
.set_default_target("/csrf-violation?target=<uri>".to_owned(), rocket::http::Method::Post)
.add_exceptions(vec![
("/inbox".to_owned(), "/inbox".to_owned(), rocket::http::Method::Post),
("/@/<name>/inbox".to_owned(), "/@/<name>/inbox".to_owned(), rocket::http::Method::Post),
])
.finalize().unwrap())
// .attach(CsrfFairingBuilder::new()
// .set_default_target("/csrf-violation?target=<uri>".to_owned(), rocket::http::Method::Post)
// .add_exceptions(vec![
// ("/inbox".to_owned(), "/inbox".to_owned(), rocket::http::Method::Post),
// ("/@/<name>/inbox".to_owned(), "/@/<name>/inbox".to_owned(), rocket::http::Method::Post),
// ("/~/<blog>/<slug>".to_owned(), "/~/<blog>/<slug>".to_owned(), rocket::http::Method::Post),
// ])
// .finalize().unwrap())
.launch();
}