mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
chore: get rid of direct DB init and use db_*
This commit is contained in:
@@ -36,7 +36,7 @@ pub async fn delete_account(
|
||||
let username = id.identity().unwrap();
|
||||
|
||||
let hash = data
|
||||
.dblib
|
||||
.db
|
||||
.get_password(&db_core::Login::Username(&username))
|
||||
.await?;
|
||||
|
||||
@@ -54,7 +54,7 @@ pub mod runners {
|
||||
use super::*;
|
||||
|
||||
pub async fn delete_user(name: &str, data: &AppData) -> ServiceResult<()> {
|
||||
data.dblib.delete_user(name).await?;
|
||||
data.db.delete_user(name).await?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user