mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: migrate get password and get secret to use db_* interface
This commit is contained in:
@@ -35,7 +35,10 @@ pub async fn delete_account(
|
||||
|
||||
let username = id.identity().unwrap();
|
||||
|
||||
let hash = data.dblib.get_password(&db_core::Login::Username(&username)).await?;
|
||||
let hash = data
|
||||
.dblib
|
||||
.get_password(&db_core::Login::Username(&username))
|
||||
.await?;
|
||||
|
||||
if Config::verify(&hash.hash, &payload.password)? {
|
||||
runners::delete_user(&username, &data).await?;
|
||||
|
||||
Reference in New Issue
Block a user