diff options
author | Gabriel Ivascu <gabrielivascu@gnome.org> | 2017-08-30 17:44:58 +0300 |
---|---|---|
committer | Gabriel Ivascu <gabrielivascu@gnome.org> | 2017-08-30 17:58:53 +0300 |
commit | 3a9478e1d44c00e8df13d82a211e7eb30e6d6345 (patch) | |
tree | 0f9f5348487d8ec36310b50cb10e1ff3978cf04e /lib/sync | |
parent | 5bf05e187d32f29a513b9ffe3fc69b26b1d33565 (diff) | |
download | epiphany-3a9478e1d44c00e8df13d82a211e7eb30e6d6345.tar.gz |
sync-service: Log out user in case of invalid or missing sync secrets
Diffstat (limited to 'lib/sync')
-rw-r--r-- | 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 fdf03a7f1..b922491d8 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); |