mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Bug 1315662 - delete SMTP server login credentials when deleting the account or if hostname/username changes.
Tag #1273
This commit is contained in:
parent
a4ab7d01df
commit
97e994c45a
3 changed files with 47 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue