fix: typo

This commit is contained in:
silver 2023-09-25 23:36:59 +01:00
parent f60425f2ad
commit 8fe859b393

View file

@ -91,13 +91,13 @@ pub mod password {
let db = &req.state().db;
if db_pending_clear_expired(db).await.is_err() {
return Ok(json!({"result": "error"}).into());
return Ok(json!({"result": "error1"}).into());
}
// check if auth exists
let details = match db_get_user_reset_auth(db, &auth).await {
None => {
return Ok(json!({"result": "error"}).into());
return Ok(json!({"result": "error2"}).into());
}
Some(x) => x,
};
@ -177,7 +177,7 @@ pub mod password {
r#"
SELECT *
FROM accounts_reset
WHERE auth == ?
WHERE auth_code == ?
"#,
)
.bind(auth)
@ -206,7 +206,7 @@ pub mod password {
new_pass: Some(pass),
};
ldap.extended(tmp)?.success()?;
//ldap.extended(tmp)?.success()?;
ldap.unbind()?;
Ok(())