mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 11:34:02 +00:00
chore: get rid of direct DB init and use db_*
This commit is contained in:
@@ -45,7 +45,7 @@ impl IndexPage {
|
||||
)]
|
||||
pub async fn list_sitekeys(data: AppData, id: Identity) -> PageResult<impl Responder> {
|
||||
let username = id.identity().unwrap();
|
||||
let res = data.dblib.get_all_user_captchas(&username).await?;
|
||||
let res = data.db.get_all_user_captchas(&username).await?;
|
||||
let body = IndexPage::new(res).render_once().unwrap();
|
||||
Ok(HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
|
||||
Reference in New Issue
Block a user