Get identity from middleware

This commit is contained in:
2022-04-02 17:03:51 +02:00
parent ad58d2de7e
commit cb4daa1112
3 changed files with 26 additions and 6 deletions

View File

@@ -18,4 +18,7 @@ pub const MIN_ACTIVITY_RECORD_TIME: u64 = 10;
pub const MIN_PASS_LEN: usize = 4;
/// Maximum session duration (6 hours)
pub const MAX_SESSION_DURATION: u64 = 3600 * 6;
pub const MAX_SESSION_DURATION: u64 = 3600 * 6;
/// The name of the cookie used to store session information
pub const SESSION_COOKIE_NAME: &str = "auth-cookie";