disable CheckEmailInput for now

This commit is contained in:
Bryan Stitt 2023-07-27 13:52:12 -07:00
parent 32a73a0c53
commit a696fb92f6

View File

@ -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