Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: do not attempt to register user in passwordless flow (#1382)

Will Hutchinson3ffbf7dd4de0
diff --git a/rust/cloud-storage/authentication_service/src/api/login/passwordless.rs b/rust/cloud-storage/authentication_service/src/api/login/passwordless.rs
index 0639a696d8..d46f2856aa 100644
--- a/rust/cloud-storage/authentication_service/src/api/login/passwordless.rs
+++ b/rust/cloud-storage/authentication_service/src/api/login/passwordless.rs
@@ -108,24 +108,6 @@ pub async fn handler(
})?;
tracing::trace!(fusionauth_user_id, "created new fusionauth user");
-
- // Register user in fusionauth application
- match ctx.auth_client.register_user(&fusionauth_user_id).await {
- Ok(_) => {}
- Err(e) => {
- tracing::error!(error=?e, email=%lowercase_email, "unable to register user in fusionauth");
- match e {
- FusionAuthClientError::UserAlreadyRegistered => {
- tracing::trace!(fusionauth_user_id=?fusionauth_user_id, "user already registered");
- }
- _ => {
- tracing::error!(error=?e, "unable to register user in fusionauth");
- return Err((StatusCode::INTERNAL_SERVER_ERROR, e.to_string())
- .into_response());
- }
- }
- }
- }
}
_ => {
tracing::error!(error=?e, email=%lowercase_email, "unable to get user id");