make 'log-out-everywhere' end the local session as well

This commit is contained in:
ansuz
2020-03-04 14:08:08 -05:00
parent 9d8bb43d03
commit e3042c94d8
2 changed files with 4 additions and 2 deletions

View File

@@ -3480,7 +3480,9 @@ define([
}); });
$userAdmin.find('a.cp-toolbar-menu-logout-everywhere').click(function () { $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 () { $userAdmin.find('a.cp-toolbar-menu-settings').click(function () {
if (padType) { if (padType) {

View File

@@ -784,7 +784,7 @@ define([
}); });
sframeChan.on('Q_LOGOUT_EVERYWHERE', function (data, cb) { 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) { sframeChan.on('EV_NOTIFY', function (data) {