unceremoniously kick web clients when you 'log out everywhere'

This commit is contained in:
ansuz
2017-05-05 18:25:55 +02:00
parent 1547063b7f
commit 42dcfb9661
2 changed files with 11 additions and 3 deletions

View File

@@ -273,8 +273,9 @@ define([
$spinner.show();
$ok.hide();
var token = proxy.loginToken = Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);
var token = Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);
localStorage.setItem('loginToken', token);
proxy.loginToken = token;
Cryptpad.whenRealtimeSyncs(realtime, function () {
$spinner.hide();