mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04: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
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue