From 8e79884314f0c1eec5a7964fa686e2c60e7d2209 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1729@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:17:52 +0100 Subject: [PATCH] fix(core): Use Smtp for Gmail by default --- backend/src/worker/check_email.rs | 1 - core/src/util/input_output.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/worker/check_email.rs b/backend/src/worker/check_email.rs index 679948b13..401512181 100644 --- a/backend/src/worker/check_email.rs +++ b/backend/src/worker/check_email.rs @@ -58,7 +58,6 @@ pub async fn process_check_email( let output = check_email(payload.input).await; info!(target: LOG_TARGET, email=output.input, is_reachable=?output.is_reachable, "Done check"); - debug!(target: LOG_TARGET, output=?output, "Done check"); let reply_payload = serde_json::to_string(&output)?; let reply_payload = reply_payload.as_bytes(); diff --git a/core/src/util/input_output.rs b/core/src/util/input_output.rs index 683657a6b..a6ff39319 100644 --- a/core/src/util/input_output.rs +++ b/core/src/util/input_output.rs @@ -247,7 +247,7 @@ impl Default for CheckEmailInput { yahoo_verif_method: YahooVerifMethod::Api, #[cfg(feature = "headless")] yahoo_verif_method: YahooVerifMethod::Headless, - gmail_verif_method: GmailVerifMethod::Api, + gmail_verif_method: GmailVerifMethod::Smtp, #[cfg(not(feature = "headless"))] hotmail_verif_method: HotmailVerifMethod::OneDriveApi, #[cfg(feature = "headless")]