Browse Source

setting csrf token duration to 12 hours

root
neil 4 months ago
parent
commit
fa9cd82531
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/forward.rs

+ 1
- 1
src/forward.rs 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()


Loading…
Cancel
Save