mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 03:25:40 +00:00
feat: migrate pages mod to use actix_auth_middleware
This commit is contained in:
@@ -66,7 +66,10 @@ impl Notification {
|
||||
|
||||
const PAGE: &str = "Notifications";
|
||||
|
||||
#[my_codegen::get(path = "crate::PAGES.panel.notifications", wrap = "crate::CheckLogin")]
|
||||
#[my_codegen::get(
|
||||
path = "crate::PAGES.panel.notifications",
|
||||
wrap = "crate::pages::get_middleware()"
|
||||
)]
|
||||
pub async fn notifications(data: AppData, id: Identity) -> PageResult<impl Responder> {
|
||||
let receiver = id.identity().unwrap();
|
||||
// TODO handle error where payload.to doesnt exist
|
||||
|
||||
Reference in New Issue
Block a user