diff --git a/src/handlers/users/login.rs b/src/handlers/users/login.rs index d924b8c..f6f9e1d 100644 --- a/src/handlers/users/login.rs +++ b/src/handlers/users/login.rs @@ -67,7 +67,6 @@ pub async fn login_user ( }; let (mut user_sel, mut openid_user) = if source == "from_login_openid" { let user_data = auth_state.user_data(); - dbg!(&user_data); let openid_conf = if let Some(openid_conf) = app_dbs.config.openid_auths.get(&user_data[0]) { openid_conf } else { @@ -82,7 +81,6 @@ pub async fn login_user ( println!("Error openid {}/{} select: {}", &openid_conf.signup_application, &user_login.name, e); OpenidUser::default() }); - dbg!(&openid_user); if openid_user.name.is_empty() { let str_user_data = format!("openid|{}|{}|{}|{}|{}|", &user_data[0], &user_data[1], &user_data[2], &openid_conf.signup_application, &user_login.name); let session_token = req_handler.new_token(); diff --git a/src/handlers/users/login_handlers.rs b/src/handlers/users/login_handlers.rs index b6c4c88..33bf411 100644 --- a/src/handlers/users/login_handlers.rs +++ b/src/handlers/users/login_handlers.rs @@ -305,8 +305,6 @@ pub fn users_login_router_handlers() -> Router { ) -> Response { SessionStoreDB::cleanup_data(&app_dbs).await; let auth_state = get_auth_state(true, &cookies, &app_dbs).await; - dbg!(&header); - dbg!(&auth_state); let mut req_handler = ReqHandler::new( ReqHeaderMap::new(header, &format!("{}",&uri.path().to_string()), &app_connect_info), &app_dbs, @@ -449,8 +447,6 @@ pub fn users_login_router_handlers() -> Router { data: axum::extract::Query, // Json(user_login): Json, ) -> Response { - dbg!(&header); - dbg!(&uri); let auth_state = get_auth_state(true, &cookies, &app_dbs).await; let user_data = auth_state.user_data(); //let _req_handler = ReqHandler::new( diff --git a/src/handlers/users/settings_handlers.rs b/src/handlers/users/settings_handlers.rs index 94a5030..ba5c98a 100644 --- a/src/handlers/users/settings_handlers.rs +++ b/src/handlers/users/settings_handlers.rs @@ -383,7 +383,6 @@ pub fn users_settings_router_handlers() -> Router { // "Error authorization" // ).into_response(); } - dbg!("{}",&user_item); let result=""; ( //status, diff --git a/src/users.rs b/src/users.rs index 8709547..4d71d10 100644 --- a/src/users.rs +++ b/src/users.rs @@ -1,14 +1,17 @@ mod entries; mod userdata; mod user; +mod openid; mod userstore; mod userstatus; mod user_role; pub(crate) use user::User; +pub(crate) use openid::OpenidUser; pub(crate) use userstore::UserStore; pub(crate) use userstatus::UserStatus; pub(crate) use userdata::{ + AllUserData, UserData, UserLogin, UserItem, diff --git a/src/users/openid.rs b/src/users/openid.rs index 22a5bde..db17e25 100644 --- a/src/users/openid.rs +++ b/src/users/openid.rs @@ -145,7 +145,6 @@ impl OpenidUser { match store { UserStore::Sql(pool) => { let query_str = format!("SELECT * FROM {} WHERE '{}' = ?", OPENID_USERS_TABLENAME, field); - dbg!(&query_str); let mut stream = sqlx::query( &query_str )