Added function to get all roles of members

This commit is contained in:
2025-02-07 17:03:27 +01:00
parent 31aa9dc066
commit 29bfa8c60e
9 changed files with 56 additions and 116 deletions

View File

@@ -24,6 +24,7 @@ bitflags! {
const KADER = 1 << 1;
const ZWEMZAKEN = 1 << 2;
const WEDSTRIJDEN = 1 << 3;
const ADMIN = 1 << 4;
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]

View File

@@ -14,7 +14,7 @@ pub struct Session {
impl Session {
pub fn new(user_id: uuid::Uuid) -> Self {
let session_id = uuid::Uuid::new_v4();
let token = format!("ses_{}", generate_session_token());
let token = generate_session_token();
let created_at = Utc::now();
let expires_at = Utc::now() + Duration::days(7);