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