Start to implement auth middleware

This commit is contained in:
2022-04-02 15:44:09 +02:00
parent ce220c52f7
commit 3fdb775308
7 changed files with 84 additions and 6 deletions

View File

@ -27,8 +27,6 @@ struct SessionIdentityData {
login_time: u64,
last_access: u64,
pub status: SessionStatus,
// TODO : add session max duration (1 day)
}
pub struct SessionIdentity<'a>(pub &'a Identity);