WIP
This commit is contained in:
@@ -25,10 +25,10 @@ pub async fn add_user(app_state: crate::AppState, username: String, password: St
|
||||
.get_result::<i64>(conn)
|
||||
})
|
||||
.await
|
||||
.map_err(|res| {
|
||||
.map_err(|_res| {
|
||||
()
|
||||
})?
|
||||
.map_err(|res| {
|
||||
.map_err(|_res| {
|
||||
()
|
||||
})?;
|
||||
println!("ret {}", res);
|
||||
@@ -50,10 +50,10 @@ pub async fn add_user(app_state: crate::AppState, username: String, password: St
|
||||
.get_result(conn)
|
||||
})
|
||||
.await
|
||||
.map_err(|e| {
|
||||
.map_err(|_e| {
|
||||
()
|
||||
})?
|
||||
.map_err(|e| {
|
||||
.map_err(|_e| {
|
||||
()
|
||||
})?;
|
||||
let out = json!(add_res);
|
||||
@@ -72,7 +72,7 @@ pub async fn check_user_psw(app_state: crate::AppState, username: String, passwo
|
||||
});
|
||||
let conn = match conn_res {
|
||||
Ok(res) => res,
|
||||
Err(err) => { return false; }
|
||||
Err(_err) => { return false; }
|
||||
};
|
||||
// 1. get psw hash
|
||||
let query_username = username.clone();
|
||||
|
||||
Reference in New Issue
Block a user