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:
parent
860d14bcd0
commit
fa9cd82531
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue