mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-14 10:14:45 -04:00
so it turns out the timeslider socket cant access anything
This commit is contained in:
parent
0b2c67e998
commit
83407ab4df
1 changed files with 12 additions and 1 deletions
|
@ -107,16 +107,27 @@ exports.setSocketIO = function(_socket)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//this message has everything to try an authorization
|
//this message has everything to try an authorization
|
||||||
|
if(message.type == "COLLABROOM"){
|
||||||
|
console.warn("message1", message)
|
||||||
|
// pad if is fine
|
||||||
|
// sessionid is not set
|
||||||
|
// message.token is not set
|
||||||
|
// message.password is undefined..
|
||||||
|
}
|
||||||
if(message.padId !== undefined && message.sessionID !== undefined && message.token !== undefined && message.password !== undefined)
|
if(message.padId !== undefined && message.sessionID !== undefined && message.token !== undefined && message.password !== undefined)
|
||||||
{
|
{
|
||||||
|
if(message.type == "COLLABROOM"){
|
||||||
|
console.warn("yaymessage", message); // I get here..
|
||||||
|
}
|
||||||
securityManager.checkAccess (message.padId, message.sessionID, message.token, message.password, function(err, statusObject)
|
securityManager.checkAccess (message.padId, message.sessionID, message.token, message.password, function(err, statusObject)
|
||||||
{
|
{
|
||||||
ERR(err);
|
ERR(err);
|
||||||
|
console.warn("here too", statusObject);
|
||||||
//access was granted, mark the client as authorized and handle the message
|
//access was granted, mark the client as authorized and handle the message
|
||||||
if(statusObject.accessStatus == "grant")
|
if(statusObject.accessStatus == "grant")
|
||||||
{
|
{
|
||||||
clientAuthorized = true;
|
clientAuthorized = true;
|
||||||
|
// console.warn("handling message");
|
||||||
handleMessage(message);
|
handleMessage(message);
|
||||||
}
|
}
|
||||||
//no access, send the client a message that tell him why
|
//no access, send the client a message that tell him why
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue