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){
|
||||
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)
|
||||
return auth.fail(data, 'No session found', false, accept);
|
||||
if(!session[auth.passport._key])
|
||||
|
Reference in New Issue
Block a user