fix: typo
This commit is contained in:
parent
f60425f2ad
commit
8fe859b393
1 changed files with 4 additions and 4 deletions
|
@ -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(())
|
||||
|
|
Loading…
Reference in a new issue