mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
added wizard warning about google passwords
This commit is contained in:
+10
-1
@@ -13,9 +13,9 @@ use email_address::EmailAddress;
|
||||
use crate::backend::{self, config::BackendConfig, BackendKind};
|
||||
#[cfg(feature = "message-send")]
|
||||
use crate::message::config::{MessageConfig, MessageSendConfig};
|
||||
use crate::ui::THEME;
|
||||
#[cfg(feature = "account-sync")]
|
||||
use crate::wizard_prompt;
|
||||
use crate::{ui::THEME, wizard_warn};
|
||||
|
||||
use super::TomlAccountConfig;
|
||||
|
||||
@@ -63,6 +63,15 @@ pub(crate) async fn configure() -> Result<Option<(String, TomlAccountConfig)>> {
|
||||
let autoconfig = autoconfig.await?;
|
||||
let autoconfig = autoconfig.as_ref();
|
||||
|
||||
if let Some(config) = autoconfig {
|
||||
if config.is_gmail() {
|
||||
println!();
|
||||
wizard_warn!("Warning: Google passwords cannot be used directly, see:");
|
||||
wizard_warn!("https://pimalaya.org/himalaya/cli/latest/configuration/gmail.html");
|
||||
println!();
|
||||
}
|
||||
}
|
||||
|
||||
match backend::wizard::configure(&account_name, email, autoconfig).await? {
|
||||
#[cfg(feature = "imap")]
|
||||
Some(BackendConfig::Imap(imap_config)) => {
|
||||
|
||||
Reference in New Issue
Block a user