Fixes
This commit is contained in:
parent
08a9eae2d3
commit
df62ee8d58
9 changed files with 32 additions and 4 deletions
|
|
@ -34,6 +34,10 @@ function handleAuth(socket, accept) {
|
|||
if (data.headers.cookie) {
|
||||
cookieParser(data, null, function () {
|
||||
var auth = data.signedCookies.auth;
|
||||
if (!auth) {
|
||||
return accept(null, true);
|
||||
}
|
||||
|
||||
session.verifySession(auth, function (err, user) {
|
||||
if (!err) {
|
||||
socket.user = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue