mirror of https://github.com/xwiki-labs/cryptpad
make 'log-out-everywhere' end the local session as well
This commit is contained in:
parent
9d8bb43d03
commit
e3042c94d8
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue