[connections/fix-auth-when-it-fails: 1/3] connection: Don't save credentials in config file




commit bdad7edf849461a7f05b59cb9e5517d2b24c5be2
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue May 18 14:43:36 2021 +0200

    connection: Don't save credentials in config file
    
    We serialize the Connection objects into a config file for
    persistent storage. All gobject properties of Connection objects
    get written to the config file.

 src/connection.vala | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/connection.vala b/src/connection.vala
index d5a343a..e7d0d2f 100644
--- a/src/connection.vala
+++ b/src/connection.vala
@@ -26,15 +26,10 @@ namespace Connections {
         public signal void show ();
 
         public abstract Gtk.Widget widget { get; protected set; }
-
-        public bool need_password { get; protected set; }
-        public bool need_username { get; protected set; }
-
         public abstract bool scaling { get; set; }
 
         public bool connected;
 
-
         public string uri {
             owned get {
                 return @"$protocol://$host:$port";
@@ -119,8 +114,10 @@ namespace Connections {
         }
 
         private AuthNotification auth_notification = null;
-        public string? username { get; set; }
-        public string? password { get; set; }
+        public bool need_password;
+        public bool need_username;
+        public string? username;
+        public string? password;
         protected void handle_auth () {
             if (auth_notification != null)
                 return;


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