Manage TTL duration in config

O01eg
Jan 27, 2022, 1:58 PM
3HT5CE6SDTPZAV7EN6FDMY2744JVFJCXHZXEQLK6IEFGPRGSBTXAC

Dependencies

  • [2] ZE5UFPX4 Add TTL cache for CSRF
  • [3] HTYEGVBU Add data to reset password page
  • [*] WW3KRXX6 Add page for reset game password
  • [*] EVP2FSBH Split index page
  • [*] WVHXYKCV Add postgresql pools
  • [*] 4MZ4VIR7 Initial commit
  • [*] BCXEUKX6 Add config, static files and web server
  • [*] 7R6HAATP Optional publish static files if use reverse-proxy

Change contents

  • replacement in src/pages/reset_game_pwd.rs at line 60
    [2.55][2.55:127]()
    cache.insert(csrf, token, std::time::Duration::from_secs(600));
    [2.55]
    [2.127]
    cache.insert(
    csrf,
    token,
    std::time::Duration::from_secs(data.cache_duration_sec),
    );
  • edit in src/pages/mod.rs at line 14
    [2.245]
    [7.559]
    pub cache_duration_sec: u64,
  • edit in src/main.rs at line 42
    [2.270]
    [7.856]
    cache_duration_sec,
  • edit in src/main.rs at line 90
    [2.353]
    [7.1899]
    cache_duration_sec,
  • edit in src/config.rs at line 14
    [2.385]
    [10.731]
    pub cache_duration_sec: u64,