emit error on store-error
this could've saved me some work. next time i'll better check if redis is online.
This commit is contained in:
parent
c5303a3d7a
commit
95fb0fba7c
@ -45,7 +45,7 @@ function authorize(options) {
|
|||||||
|
|
||||||
auth.store.get(data.sessionID, function(err, session){
|
auth.store.get(data.sessionID, function(err, session){
|
||||||
if(err)
|
if(err)
|
||||||
return auth.fail(data, 'Error in session store.', true, accept);
|
return auth.fail(data, 'Error in session store:\n' + err.message, true, accept);
|
||||||
if(!session)
|
if(!session)
|
||||||
return auth.fail(data, 'No session found', false, accept);
|
return auth.fail(data, 'No session found', false, accept);
|
||||||
if(!session[auth.passport._key])
|
if(!session[auth.passport._key])
|
||||||
|
Reference in New Issue
Block a user