From e3042c94d8ac4b8344ebac0e02820ed9c9d54fa2 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 4 Mar 2020 14:08:08 -0500 Subject: [PATCH] make 'log-out-everywhere' end the local session as well --- www/common/common-ui-elements.js | 4 +++- www/common/sframe-common-outer.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index b3d285875..52be70e4b 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3480,7 +3480,9 @@ define([ }); $userAdmin.find('a.cp-toolbar-menu-logout-everywhere').click(function () { - Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () { }); + Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () { + window.parent.location = origin + '/'; + }); }); $userAdmin.find('a.cp-toolbar-menu-settings').click(function () { if (padType) { diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 2049fc2b5..21556d690 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -784,7 +784,7 @@ define([ }); sframeChan.on('Q_LOGOUT_EVERYWHERE', function (data, cb) { - Cryptpad.logoutFromAll(cb); + Cryptpad.logoutFromAll(Utils.Util.bake(Utils.LocalStore.logout, cb)); }); sframeChan.on('EV_NOTIFY', function (data) {