feat(otter): add working user removal route

This commit is contained in:
Jef Roosens 2025-08-29 14:18:33 +02:00
parent b946e1ce98
commit 5017bd1c5f
Signed by: Jef Roosens
GPG key ID: 02D4C0997E74717B
4 changed files with 35 additions and 0 deletions

View file

@ -14,4 +14,8 @@ impl<'a> AdminRepository<'a> {
) -> Result<Vec<models::User>, AuthErr> {
self.store.paginated_users(page, filter)
}
pub fn remove_user(&self, id: i64) -> Result<bool, AuthErr> {
self.store.remove_user(id)
}
}

View file

@ -54,6 +54,9 @@ pub trait GpodderAuthStore {
/// Update the user with the included ID with the new values
fn update_user(&self, user: User) -> Result<User, AuthErr>;
/// Remove the user with the given ID
fn remove_user(&self, id: i64) -> Result<bool, AuthErr>;
/// Create a new session for a user with the given session ID
///
/// The `last_seen` timestamp's precision should be at least accurate to the second