refactor(gpodder): split repository for admin view
This commit is contained in:
parent
669aa475ca
commit
2524eb5807
6 changed files with 140 additions and 100 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
mod sessions;
|
||||
mod users;
|
||||
|
||||
use axum::{
|
||||
Form, RequestExt, Router,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue