mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 19:44:03 +00:00
feat: migrate pages mod to use actix_auth_middleware
This commit is contained in:
@@ -38,7 +38,10 @@ impl IndexPage {
|
||||
}
|
||||
|
||||
/// render a list of all sitekeys that a user has
|
||||
#[my_codegen::get(path = "crate::PAGES.panel.sitekey.list", wrap = "crate::CheckLogin")]
|
||||
#[my_codegen::get(
|
||||
path = "crate::PAGES.panel.sitekey.list",
|
||||
wrap = "crate::pages::get_middleware()"
|
||||
)]
|
||||
pub async fn list_sitekeys(data: AppData, id: Identity) -> PageResult<impl Responder> {
|
||||
let res = get_list_sitekeys(&data, &id).await?;
|
||||
let body = IndexPage::new(res).render_once().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user