disable CheckEmailInput for now

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

@ -64,6 +64,8 @@ pub async fn user_post(
if x.is_empty() { if x.is_empty() {
user.email = sea_orm::Set(None); user.email = sea_orm::Set(None);
} else { } else {
// 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 // Make a quick check if the e-mail provide is active
let check_email_input = CheckEmailInput::new(x.clone()); let check_email_input = CheckEmailInput::new(x.clone());
// Verify this input, using async/await syntax. // Verify this input, using async/await syntax.
@ -75,6 +77,7 @@ pub async fn user_post(
"The e-mail address you provided seems invalid".into(), "The e-mail address you provided seems invalid".into(),
)); ));
} }
}
// TODO: send a confirmation email first before marking this email address as validated // TODO: send a confirmation email first before marking this email address as validated
user.email = sea_orm::Set(Some(x)); user.email = sea_orm::Set(Some(x));