Bug 1315662 - delete SMTP server login credentials when deleting the account or if hostname/username changes.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-11 01:26:42 -05:00 • committed by Roy Tam
commit 97e994c45a
3 changed files with 47 additions and 18 deletions

View file

@ -54,6 +54,11 @@ var gSmtpServerListWindow =
if (!cancel)
{
// Remove password information first.
try {
server.forgetPassword();
} catch (e) { /* It is OK if this fails. */ }
// Remove the server.
MailServices.smtp.deleteServer(server);
parent.replaceWithDefaultSmtpServer(server.key);
this.refreshServerList("", true);