Skip to content

Commit

Permalink
fix(core): Yahoo add back IDENTIFIER_EXISTS
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 6, 2023
1 parent 0209111 commit 2b63556
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/smtp/yahoo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ pub async fn check_yahoo(
response
);

let username_exists = response
.errors
.iter()
.any(|item| item.name == "userId" && item.error == "IDENTIFIER_NOT_AVAILABLE");
let username_exists = response.errors.iter().any(|item| {
item.name == "userId"
&& (item.error == "IDENTIFIER_NOT_AVAILABLE" || item.error == "IDENTIFIER_EXISTS")
});

Ok(SmtpDetails {
can_connect_smtp: true,
Expand Down

0 comments on commit 2b63556

Please sign in to comment.