Get identity from middleware
This commit is contained in:
@@ -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";
|
Reference in New Issue
Block a user