refactor(gpodder): split repository for admin view

This commit is contained in:
Jef Roosens 2025-06-24 13:30:17 +02:00
parent 669aa475ca
commit 2524eb5807
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
6 changed files with 140 additions and 100 deletions

View file

@ -123,7 +123,8 @@ impl From<gpodder::AuthErr> for AppError {
match value {
gpodder::AuthErr::UnknownUser
| gpodder::AuthErr::UnknownSession
| gpodder::AuthErr::InvalidPassword => Self::Unauthorized,
| gpodder::AuthErr::InvalidPassword
| gpodder::AuthErr::NotAnAdmin => Self::Unauthorized,
gpodder::AuthErr::Other(err) => Self::Other(err),
}
}

View file

@ -1,4 +1,5 @@
mod sessions;
mod users;
use axum::{
Form, RequestExt, Router,