chore: (wip) suspend bindings

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

No files matched your search

@@ -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(