From a696fb92f6633b3031a95e451c1284eba6c21e81 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 27 Jul 2023 13:52:12 -0700 Subject: [PATCH] disable CheckEmailInput for now --- web3_proxy/src/frontend/users/mod.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/web3_proxy/src/frontend/users/mod.rs b/web3_proxy/src/frontend/users/mod.rs index 3d428fa7..b393d79c 100644 --- a/web3_proxy/src/frontend/users/mod.rs +++ b/web3_proxy/src/frontend/users/mod.rs @@ -64,16 +64,19 @@ pub async fn user_post( if x.is_empty() { user.email = sea_orm::Set(None); } else { - // Make a quick check if the e-mail provide is active - let check_email_input = CheckEmailInput::new(x.clone()); - // Verify this input, using async/await syntax. - let result = check_email(&check_email_input).await; + // TODO: enable this once we figure out why it is hanging forever + if false { + // Make a quick check if the e-mail provide is active + let check_email_input = CheckEmailInput::new(x.clone()); + // Verify this input, using async/await syntax. + let result = check_email(&check_email_input).await; - // Let's be very chill about the validity of e-mails, and only error if the Syntax / SMPT / MX does not work - if let Reachable::Invalid = result.is_reachable { - return Err(Web3ProxyError::BadRequest( - "The e-mail address you provided seems invalid".into(), - )); + // Let's be very chill about the validity of e-mails, and only error if the Syntax / SMPT / MX does not work + if let Reachable::Invalid = result.is_reachable { + return Err(Web3ProxyError::BadRequest( + "The e-mail address you provided seems invalid".into(), + )); + } } // TODO: send a confirmation email first before marking this email address as validated