doc: added documentation for the path

This commit is contained in:
silver 2023-07-30 23:22:40 +01:00
parent ca2f23915a
commit d10d40522e
2 changed files with 45 additions and 2 deletions

View file

@ -87,13 +87,13 @@ pub async fn post_password_auth(mut req: Request<State>) -> tide::Result {
let db = &req.state().db;
if db_pending_clear_expired(db).await.is_err() {
return Ok(json!({"result": "success"}).into());
return Ok(json!({"result": "error"}).into());
}
// check if auth exists
let details = match db_get_user_reset_auth(db, &auth).await {
None => {
return Ok(json!({"result": "success"}).into());
return Ok(json!({"result": "error"}).into());
}
Some(x) => x,
};