X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=blobdiff_plain;f=src%2Fmoonshot-identity-management-view.vala;fp=src%2Fmoonshot-identity-management-view.vala;h=1c1390f26240758027010272a9b11d115f7948b5;hp=1a042b94075b9fc22e7a0e74c29533908ae5f894;hb=fa8cc6553f0f8c40eda27408984e0631a989f133;hpb=b646155bc64e5695f0ca4a363ae3b6ea00cd9bb3 diff --git a/src/moonshot-identity-management-view.vala b/src/moonshot-identity-management-view.vala index 1a042b9..1c1390f 100644 --- a/src/moonshot-identity-management-view.vala +++ b/src/moonshot-identity-management-view.vala @@ -559,6 +559,9 @@ public class IdentityManagerView : Window { switch (result) { case ResponseType.OK: identity.password = dialog.password; + // Don't leave passwords in memory longer than necessary. + // (This may not actually clear the data, but it's the best we can do.) + dialog.clear_password(); identity.store_password = dialog.remember; if (dialog.remember) identity.temporary = false; @@ -568,6 +571,8 @@ public class IdentityManagerView : Window { identity = null; break; } + // Do this again, in case OK button wasn't selected. + dialog.clear_password(); dialog.destroy(); } }