From c552633adb3db70e04e680071eae28e72d7ededf Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Thu, 21 Feb 2019 14:28:31 +1100 Subject: [PATCH] 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; }