register logic (bricked) user management !! omikron con wait for
response method !!
This commit is contained in:
parent
d289346c63
commit
0d51dc9ac7
16 changed files with 361 additions and 260 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use crate::auth::auth_connector::unregister_user;
|
||||
use crate::communities::community::Community;
|
||||
use crate::data::communication::{CommunicationType, CommunicationValue, DataTypes};
|
||||
use crate::gui::log_panel::log_message;
|
||||
|
|
@ -108,11 +107,12 @@ pub async fn handle(
|
|||
"{\"type\":\"error\"}".to_string()
|
||||
} else {
|
||||
let uuid = body.unwrap()["uuid"].as_i64().unwrap_or(0);
|
||||
unregister_user(
|
||||
// TODO MOVE TO OMIKRON CONNECTION
|
||||
/*unregister_user(
|
||||
uuid,
|
||||
&user_manager::get_user(uuid).unwrap().reset_token,
|
||||
)
|
||||
.await;
|
||||
.await;*/
|
||||
user_manager::remove_user(uuid);
|
||||
user_manager::save_users();
|
||||
"{}".to_string()
|
||||
|
|
|
|||
Loading…
Reference in a new issue