projects
/
moonshot-ui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When presenting a password dialog field, clear out the field's contents
[moonshot-ui.git]
/
src
/
moonshot-identity-management-view.vala
diff --git
a/src/moonshot-identity-management-view.vala
b/src/moonshot-identity-management-view.vala
index
1a042b9
..
1c1390f
100644
(file)
--- 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;
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;
identity.store_password = dialog.remember;
if (dialog.remember)
identity.temporary = false;
@@
-568,6
+571,8
@@
public class IdentityManagerView : Window {
identity = null;
break;
}
identity = null;
break;
}
+ // Do this again, in case OK button wasn't selected.
+ dialog.clear_password();
dialog.destroy();
}
}
dialog.destroy();
}
}