From 2d1ba4dfa83b9df18c3aaaa461f06f21cc728fc9 Mon Sep 17 00:00:00 2001 From: abbr Date: Thu, 26 Feb 2015 04:37:55 +0000 Subject: [PATCH] make sure number of groups > 0 --- quick-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quick-test.js b/quick-test.js index 738611d..14c2d48 100644 --- a/quick-test.js +++ b/quick-test.js @@ -8,14 +8,14 @@ var req = { isTestingNodeSSPI: true }; var res = { - setHeader: function () {}, - end: function () {} + setHeader: function() {}, + end: function() {} }; var nodeSSPIObj = new nodeSSPI({ 'retrieveGroups': true }); -nodeSSPIObj.authenticate(req, res, function (err) { - if (req.connection.userGroups && req.connection.userGroups.length >= 0) { +nodeSSPIObj.authenticate(req, res, function(err) { + if (req.connection.userGroups && req.connection.userGroups.length > 0) { process.stdout.write('pass'); } }); \ No newline at end of file