diff options
Diffstat (limited to 'src/state/mod.rs')
| -rw-r--r-- | src/state/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs index 87b7fe7..4fcf413 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -157,6 +157,10 @@ pub(crate) struct AppState { pub(crate) challenges: Arc<std::sync::Mutex<crate::access::challenge::Used>>, pub(crate) token_lifetime: Duration, pub(crate) session_lifetime: Duration, + /// How long a challenge to log in by key is valid, and how many logins by key a user + /// may make within it (`access::challenge`). + pub(crate) challenge_lifetime: Duration, + pub(crate) key_logins_per_user: usize, /// Origins whose pages may call this node's open endpoints (`api::cors`). pub(crate) cors_origins: Arc<Vec<String>>, /// This node's own files, and how much it read and wrote them. |
