better message for admins
parent
63b00b9010
commit
bf4c86ed94
|
@ -234,8 +234,7 @@ exports.handleMessage = function(client, message)
|
||||||
// FIXME: A message might arrive but wont have an auth object, this is obviously bad so we should deny it
|
// 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", sessioninfos[client.id])
|
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.")
|
||||||
client.json.send({accessStatus: "deny"});
|
|
||||||
callback();
|
callback();
|
||||||
}else{
|
}else{
|
||||||
var auth = sessioninfos[client.id].auth;
|
var auth = sessioninfos[client.id].auth;
|
||||||
|
|
Loading…
Reference in New Issue