Skip to content

Commit

Permalink
make sure number of groups > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Feb 26, 2015
1 parent 168af3a commit 2d1ba4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quick-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});

0 comments on commit 2d1ba4d

Please sign in to comment.