[polari] app: Clear passwords when removing account



commit a3bdb5c156c8c5b93c8b04cfbc326f8f4940232b
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Apr 5 01:27:19 2020 +0200

    app: Clear passwords when removing account
    
    We shouldn't leave sensitive bits behind, so clear out any passwords
    when removing an account.
    
    https://gitlab.gnome.org/GNOME/polari/-/issues/132

 src/application.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index f14a3703..6a3f18d0 100644
--- a/src/application.js
+++ b/src/application.js
@@ -760,6 +760,9 @@ var Application = GObject.registerClass({
             n.connect('closed', () => {
                 account.remove_async((o, r) => {
                     a.remove_finish(r); // TODO: Check for errors
+
+                    Utils.clearAccountPassword(a);
+                    Utils.clearIdentifyPassword(a);
                 });
             });
             n.connect('undo', () => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]