httpd: Refactor auth and session handling

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-02-04 19:38:26 +01:00
committed by Alexis Sellier
parent f689cb2c9f
commit ffdf7c171d
3 changed files with 28 additions and 32 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ type SessionId = String;
#[derive(Clone)]
pub struct Context {
profile: Arc<Profile>,
sessions: Arc<RwLock<HashMap<SessionId, auth::AuthState>>>,
sessions: Arc<RwLock<HashMap<SessionId, auth::Session>>>,
}
impl Context {