This commit is contained in:
calzoneman 2015-02-19 20:30:35 -06:00
parent 08a9eae2d3
commit df62ee8d58
9 changed files with 32 additions and 4 deletions

View file

@ -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 = {