diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:26:42 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:26:42 -0500 |
commit | 656e8d6fef2a2ef69501337b3d0c8c4257070dc5 (patch) | |
tree | 5baef1316cad3e78b15512d259076d93cf9bd267 /mailnews/base | |
parent | 47711961a40777a454be77209e60bfe640fd0c83 (diff) | |
download | uxp-656e8d6fef2a2ef69501337b3d0c8c4257070dc5.tar.gz |
Bug 1315662 - delete SMTP server login credentials when deleting the account or if hostname/username changes.
Tag mcp-graveyard/UXP#1273
Diffstat (limited to 'mailnews/base')
-rw-r--r-- | mailnews/base/prefs/content/am-smtp.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mailnews/base/prefs/content/am-smtp.js b/mailnews/base/prefs/content/am-smtp.js index f107a32ae5..44580bc204 100644 --- a/mailnews/base/prefs/content/am-smtp.js +++ b/mailnews/base/prefs/content/am-smtp.js @@ -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); |