diff --git a/backend/windmill-api-users/src/lib.rs b/backend/windmill-api-users/src/lib.rs index 97aab59b2a..913bd46b82 100644 --- a/backend/windmill-api-users/src/lib.rs +++ b/backend/windmill-api-users/src/lib.rs @@ -1,2 +1 @@ pub mod users; -pub mod users_oss; diff --git a/backend/windmill-api-users/src/users_oss.rs b/backend/windmill-api-users/src/users_oss.rs deleted file mode 100644 index afbb729b79..0000000000 --- a/backend/windmill-api-users/src/users_oss.rs +++ /dev/null @@ -1,65 +0,0 @@ -use std::sync::Arc; - -use windmill_api_auth::ApiAuthed; - -use crate::users::{EditPassword, NewUser}; - -use windmill_common::webhook::WebhookShared; -use windmill_common::DB; - -use argon2::Argon2; - -use axum::{extract::Extension, Json}; - -use http::StatusCode; - -use serde::Deserialize; - -use windmill_common::error::{Error, Result}; - -pub async fn create_user( - _authed: ApiAuthed, - _db: DB, - _webhook: WebhookShared, - _argon2: Arc>, - mut _nu: NewUser, -) -> Result<(StatusCode, String)> { - Err(Error::internal_err( - "Not implemented in Windmill's Open Source repository".to_string(), - )) -} - -pub async fn set_password( - _db: DB, - _argon2: Arc>, - _authed: ApiAuthed, - _user_email: &str, - _ep: EditPassword, -) -> Result { - Err(Error::internal_err( - "Not implemented in Windmill's Open Source repository".to_string(), - )) -} - -pub fn hash_password(_argon2: Arc>, _password: String) -> Result { - Err(Error::internal_err( - "Not implemented in Windmill's Open Source repository".to_string(), - )) -} - -#[derive(Deserialize, Debug)] -#[allow(dead_code)] -pub struct OnboardingData { - pub touch_point: String, - pub use_case: String, -} - -pub async fn submit_onboarding_data( - _authed: ApiAuthed, - Extension(_db): Extension, - Json(_data): Json, -) -> Result { - Err(Error::internal_err( - "Not implemented in Windmill's Open Source repository".to_string(), - )) -}