[epiphany] sync-service: Log out user in case of invalid or missing sync secrets
- From: Gabriel Ivașcu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] sync-service: Log out user in case of invalid or missing sync secrets
- Date: Wed, 30 Aug 2017 15:01:07 +0000 (UTC)
commit 3a9478e1d44c00e8df13d82a211e7eb30e6d6345
Author: Gabriel Ivascu <gabrielivascu gnome org>
Date: Wed Aug 30 17:44:58 2017 +0300
sync-service: Log out user in case of invalid or missing sync secrets
lib/sync/ephy-sync-service.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lib/sync/ephy-sync-service.c b/lib/sync/ephy-sync-service.c
index fdf03a7..b922491 100644
--- a/lib/sync/ephy-sync-service.c
+++ b/lib/sync/ephy-sync-service.c
@@ -1478,6 +1478,13 @@ load_secrets_cb (SecretService *service,
out_error:
suggestion = _("Please visit Preferences and sign in again to continue syncing.");
ephy_notification_show (ephy_notification_new (message, suggestion));
+ /* Reset the sync user so that it will be considered signed-out
+ * when the preferences dialog is opened. */
+ ephy_sync_utils_set_sync_user (NULL);
+ ephy_sync_utils_set_sync_time (0);
+ ephy_sync_utils_set_bookmarks_sync_is_initial (TRUE);
+ ephy_sync_utils_set_passwords_sync_is_initial (TRUE);
+ ephy_sync_utils_set_history_sync_is_initial (TRUE);
out_no_error:
if (value)
secret_value_unref (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]