chore: (wip) suspend bindings

This commit is contained in:
Paul Makles
2024-08-29 20:17:35 +01:00
parent 949a0cf649
commit ae2194cce8
2 changed files with 30 additions and 2 deletions

View File

@@ -662,6 +662,14 @@ impl User {
}
}
/// Suspend the user
pub async fn suspend(&mut self, db: &Database) -> Result<()> {
// Remove sessions (logout all)
// Mark user as suspended
// Disable account
Ok(())
}
/// Mark as deleted
pub async fn mark_deleted(&mut self, db: &Database) -> Result<()> {
self.update(