feat(otter): add working user removal route
This commit is contained in:
parent
b946e1ce98
commit
5017bd1c5f
4 changed files with 35 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue