Don't break if there is no session cookie.
This commit is contained in:
parent
a4bd92c184
commit
d05d587f21
|
@ -117,6 +117,11 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
|
||||||
//get information about all sessions contained in this cookie
|
//get information about all sessions contained in this cookie
|
||||||
function(callback)
|
function(callback)
|
||||||
{
|
{
|
||||||
|
if (!sessionCookie) {
|
||||||
|
callback();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var sessionIDs = sessionCookie.split(',');
|
var sessionIDs = sessionCookie.split(',');
|
||||||
async.foreach(sessionIDs, function(sessionID) {
|
async.foreach(sessionIDs, function(sessionID) {
|
||||||
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo) {
|
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo) {
|
||||||
|
|
Loading…
Reference in New Issue