mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
More explicit
This commit is contained in:
@@ -313,12 +313,9 @@ impl Imap {
|
||||
|
||||
let lock = context.wrong_pw_warning_mutex.lock().await;
|
||||
if self.login_failed_once
|
||||
&& !context.get_config_bool(Config::WarnedAboutWrongPw).await
|
||||
&& context.get_config_bool(Config::NotifyAboutWrongPw).await
|
||||
{
|
||||
if let Err(e) = context
|
||||
.set_config(Config::WarnedAboutWrongPw, Some("1"))
|
||||
.await
|
||||
{
|
||||
if let Err(e) = context.set_config(Config::NotifyAboutWrongPw, None).await {
|
||||
warn!(context, "{}", e);
|
||||
}
|
||||
drop(lock);
|
||||
|
||||
Reference in New Issue
Block a user