X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmoonshot-identity-management-view.vala;h=371f5d725d3093cebd1a0f740c41f6fb2f1d6b16;hb=0c6c453a185fcb9b88d97a7ff4c4f1ae022fa5f8;hp=1a042b94075b9fc22e7a0e74c29533908ae5f894;hpb=6b9c02ac9b2331291f26a3612cf35a44d5f55aff;p=moonshot-ui.git diff --git a/src/moonshot-identity-management-view.vala b/src/moonshot-identity-management-view.vala index 1a042b9..371f5d7 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(); } } @@ -782,7 +787,7 @@ SUCH DAMAGE. // Right below id_scrollwin: remember_identity_binding = new CheckButton.with_label(_("Remember my identity choice for this service")); - remember_identity_binding.active = false; + remember_identity_binding.active = true; top_table.attach(remember_identity_binding, 0, num_cols / 2, num_rows - 1, num_rows, fill_and_expand, fill_and_expand, 3, 0); var add_button = new Button.with_label(_("Add"));