[geary/wip/fix-not-prompting-for-missing-password: 5/5] Prompt when loading a libsecret token but it could not be found



commit c552633adb3db70e04e680071eae28e72d7ededf
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 21 14:28:31 2019 +1100

    Prompt when loading a libsecret token but it could not be found
    
    Fixes #249 for local accounts.

 src/client/application/secret-mediator.vala | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/client/application/secret-mediator.vala b/src/client/application/secret-mediator.vala
index 85264ef5..2d541b96 100644
--- a/src/client/application/secret-mediator.vala
+++ b/src/client/application/secret-mediator.vala
@@ -64,17 +64,13 @@ public class SecretMediator : Geary.CredentialsMediator, Object {
                 service.credentials =
                     service.credentials.copy_with_token(password);
                 loaded = true;
-            } else {
-                debug(
-                    "Unable to fetch libsecret password for %s: %s %s",
-                    account.id,
-                    to_proto_value(service.protocol),
-                    service.credentials.user
-                );
             }
-        } else {
+        }
+
+        if (!loaded) {
             loaded = yield prompt_token(account, service, cancellable);
         }
+
         return loaded;
     }
 


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