1
0
Fork 0
mirror of https://git.42l.fr/neil/sncf.git synced 2024-04-25 11:00:33 +02:00

setting csrf token duration to 12 hours

This commit is contained in:
neil 2020-11-05 16:16:19 +01:00
parent 860d14bcd0
commit fa9cd82531

View file

@ -367,7 +367,7 @@ fn web_redir(location: &str) -> HttpResponse {
pub async fn index(req: HttpRequest) -> Result<HttpResponse, TrainCrash> {
let seed = AesGcmCsrfProtection::from_key(get_csrf_key());
let (csrf_token, csrf_cookie) = seed.generate_token_pair(None, 300)
let (csrf_token, csrf_cookie) = seed.generate_token_pair(None, 43200)
.expect("couldn't generate token/cookie pair");
Ok(HttpResponse::Ok()