mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-10 06:36:16 +02:00
PadMessageHandler: Rename createSessionInfo to createSessionInfoAuth
The function doesn't create the session info -- it creates the auth property of existing session info.
This commit is contained in:
parent
de792559cb
commit
3262ff1cb9
@ -264,7 +264,7 @@ exports.handleMessage = async function(client, message)
|
||||
|
||||
if (message.type === "CLIENT_READY") {
|
||||
// client tried to auth for the first time (first msg from the client)
|
||||
createSessionInfo(client, message);
|
||||
createSessionInfoAuth(client, message);
|
||||
}
|
||||
|
||||
// the session may have been dropped during earlier processing
|
||||
@ -839,11 +839,13 @@ function handleSwitchToPad(client, message)
|
||||
});
|
||||
|
||||
// start up the new pad
|
||||
createSessionInfo(client, message);
|
||||
createSessionInfoAuth(client, message);
|
||||
handleClientReady(client, message);
|
||||
}
|
||||
|
||||
function createSessionInfo(client, message)
|
||||
// Creates/replaces the auth object in the client's session info. Session info for the client must
|
||||
// already exist.
|
||||
function createSessionInfoAuth(client, message)
|
||||
{
|
||||
// Remember this information since we won't
|
||||
// have the cookie in further socket.io messages.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user