mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Stop processing a message without auth (i.e. a client did not send
CLIENT_READY)
This commit is contained in:
parent
4ecf0dfad2
commit
6b0cf29af6
1 changed files with 1 additions and 2 deletions
|
@ -257,11 +257,10 @@ exports.handleMessage = function(client, message)
|
||||||
// FIXME: Use a hook instead
|
// FIXME: Use a hook instead
|
||||||
// FIXME: Allow to override readwrite access with readonly
|
// FIXME: Allow to override readwrite access with readonly
|
||||||
|
|
||||||
// FIXME: A message might arrive but wont have an auth object, this is obviously bad so we should deny it
|
|
||||||
// Simulate using the load testing tool
|
// Simulate using the load testing tool
|
||||||
if(!sessioninfos[client.id].auth){
|
if(!sessioninfos[client.id].auth){
|
||||||
console.error("Auth was never applied to a session. If you are using the stress-test tool then restart Etherpad and the Stress test tool.")
|
console.error("Auth was never applied to a session. If you are using the stress-test tool then restart Etherpad and the Stress test tool.")
|
||||||
callback();
|
return;
|
||||||
}else{
|
}else{
|
||||||
var auth = sessioninfos[client.id].auth;
|
var auth = sessioninfos[client.id].auth;
|
||||||
var checkAccessCallback = function(err, statusObject)
|
var checkAccessCallback = function(err, statusObject)
|
||||||
|
|
Loading…
Reference in a new issue