Prompt when loading a libsecret token but it could not be found
Fixes #249 for local accounts.
This commit is contained in:
parent
f59fdd050a
commit
c552633adb
1 changed files with 4 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue